joyent/libuv — pull request #654 by ashaffer (2012-12-13 03:52:59+00:00)
Title: Solaris directory watching resource leak / segfault bug fix

Libuv doesn't properly clean up directory watches on solaris if they are in the PORT_LOADED state. I encountered this problem in node.js. To reproduce it, execute the following in a node console on solaris:

fs = require('fs');
h = fs.watch();
h.close();

Then in a separate shell (without closing the node shell, of course) touch the folder you watched and you should get a seg fault.