On Mon, 31 Jan 2005 17:41:43 -0500 Stephen Gran <[EMAIL PROTECTED]> wrote: > The problem is that when you kill `cat $pidfile`, you don't end up > signalling the thread that is listening for signal events, and it has to > be communicated over to that thread by the thread that wrote the pid > file. This inter thread communication is slow at best on linux 2.4 > kernels, but quite snappy on 2.6. All threads also correctly share a > pid, but have seperate LWP IDs on 2.6. So, the workaround is to send a > kill to -${pid}, which sends that signal to all threads in the process > group, including the ones polling for events and the one listening for > signals. This means the signalling thread gets the signal right away, > and it works much quicker.
Thank you for your explanation (and your time). It's quite clear now. ^_*' > on it's way out, as 2.6 stabilizes. I would have rather had a note in > the README about this problem on 2.4 kernels, with a short 'how to work > around' section. That would be very nice than having people looking for "-ve process group" on the internet whole day long. Thank you. It definitely helps a lot. -- Best regards, imacat ^_*' <[EMAIL PROTECTED]> PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt <<Woman's Voice>> News: http://www.wov.idv.tw/ Tavern IMACAT's: http://www.imacat.idv.tw/ TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug
pgp3vI5YsLYb0.pgp
Description: PGP signature
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users