kqueue/kevent: EVFILT_PROC, EVFILT_VNODE
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com I'm using a kqueue and kevent to watch for process exit via Thanks, Jim _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... EV_SET(&ev, pid, EVFILT_PROC, (EV_ADD | EV_ENABLE), NOTE_EXIT, 0, user_data); Do I have to do anything explicit to cleanup after I receive the event that the process has exited? Also, for the man page says "Calling close() on a file descriptor will remove any kevents that reference the descriptor." Do I have to do anything explicit to cleanup when watching a descriptor with EVFILT_VNODE besides close that descriptor? This email sent to site_archiver@lists.apple.com
participants (1)
-
Jim Correia