[EMAIL PROTECTED] said: > The problem is that the KILL(2) call is used to check to see if a process > exists at the specified PID. The default action for SIGUSR1 is to kill the > targeted process. Thus the original process dies, and the new process exits. > > The propper thing to do is to use kill(pid,0), which just checks if a > process exists with that pid without actually signaling it. This is standard > behavoir, for this type of thing. > > The bug is not that the second hotkey fails to start, but rather that the > attempt to start the seccond hotkey kills the first and then the second > exits.
Hum, I could have sworn that it did not used do this, and there should be a signal(SIGUSR1, SIG_IGN); line in there to stop the first hotkey dieing. If you look in wmtuxtime you will see such a line. Stupid thing is if I now role up an update to toshutils, it won't be acceptable for stable because it is new upstream version, despite being just bug fixes :( JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Northumberland, United Kingdom. Tel: +44 1661-832195 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]