A (somewhat) working way of using kqueue to monitor a process for exit/fork