• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FSEvents errors after the removal of a watched directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FSEvents errors after the removal of a watched directory


  • Subject: FSEvents errors after the removal of a watched directory
  • From: <email@hidden>
  • Date: Wed, 5 May 2010 16:27:40 +0200
  • Acceptlanguage: en-US
  • Thread-topic: FSEvents errors after the removal of a watched directory

Hi,

I am trying to use FSEvents in my application and the architecture is the following:

- I create a FSEventStream with the right directories to watch
- if the user adds or removes a directory, I delete the current FSEventStream and create a new one with the right values

However, I have some strange errors if I start watching a single directory and then delete it.
The FSEvent callback is correctly called and I delete the current FSEventStream (no need to create a new one since I am not watching any directory anymore).

The errors are the following lines:

-------------8<--------------------
(CarbonCore.framework) process_dir_events: watch_path: error trying to add kqueue for fd 8 (/Users/fabien/Qt/oslo-staging-1/tests/auto/qfilesystemwatcher/testDir; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_path: error removing fd 9 from kqueue (Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 9 (/Users/fabien/Qt/oslo-staging-1/tests/auto/qfilesystemwatcher; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 10 (/Users/fabien/Qt/oslo-staging-1/tests/auto; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 11 (/Users/fabien/Qt/oslo-staging-1/tests; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 12 (/Users/fabien/Qt/oslo-staging-1; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 13 (/Users/fabien/Qt; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 14 (/Users/fabien; Bad file descriptor)
(CarbonCore.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 15 (/Users; Bad file descriptor)
------------->8--------------------

I have no clue about what this is about. My application doesn't crash but these errors worry me, so I am looking for help about the cause.

Thank you.


Best regards,
Fabien

--
Fabien Freling
Software Engineer, Platform team
Nokia, Qt Development Frameworks

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: FSEvents errors after the removal of a watched directory
  • Next by Date: auto mounting a partition with nobrowse
  • Previous by thread: FSEvents errors after the removal of a watched directory
  • Next by thread: Re: FSEvents errors after the removal of a watched directory
  • Index(es):
    • Date
    • Thread