Snow Leopard 10.6.1: OK and Cancel not responding
Brought to you by:
fitterhappier
Hi,
I have been testing my maintenance scripts and I have found out that latest version of iHook does not fully work in Snow Leopard 10.6.1.
Latest version is 1.2.0, I guess?
Finder info on the latest iHook.app shows still 1.1.1?
While running scripts in 10.6.1 OK and/or Cancel buttons in iHook are not responding so there is no way to cancel or advance running iHook notification.
I have tested my scripts parallel in Mac OS X 10.5.8 on the same machine and OK and Cancel respond correctly.
Could the developer please verify this problem and hopefully release an new updated version of iHook with 10.6 compatibility.
Thanks,
GnarfUser
Hi,
This problem is the result of the new lib_dispatch in 10.6 (Grand Central Dispatch). There is a bug in lib_dispatch where a processes created with execve() on a global dispatch queue (the way iHook tuns a script) does not receive some signals. The cancel button in iHook sends the script process a SIGTERM, which that process never receives.
A work around we came up with involves moving away from using NSOperationQueue (which uses global dispatch queues in 10.6) and using a POSIX thread. This edit is just a few lines in the code. A patch file is posted in the "Does iHook work in Snow Leopard" page in the Help topic (https://sourceforge.net/projects/ihook/forums/forum/829203/topic/3436157).
The Best,
Andrew Yarmola
Stanford University
Academic Computing Services