Martijn,

On vrijdag, maa 25, 2005, at 23:19 Europe/Amsterdam, Martijn van Beers wrote:

On Fri, 2005-03-25 at 23:00 +0100, Bas Schulte wrote:
Hi,

my POE app install a handler for sigint ans sigkill
($poe_kernel->sig(INT  => 'sigint');, $poe_kernel->sig(KILL  =>
'sigint');)), this works fine when I start the app and hit ctrl-c.
However, when I kill it using kill on the commandline with the pid of
the POE app, it just prints "Terminated" and abruptly stops, without
calling my installed handler.

BTW, I'm not using "kill -KILL pid", just 'kill pid".

If you had read the kill(1) manpage, you would have seen the default signal is TERM, not KILL :)

Argh! That's it.

My original daemon code (written +/- 5 years ago) indeed traps TERM, for my poe server, I didn't want to use my own signal handling so I took it out. However, I forgot to add a $kernel->sig(TERM => 'sigint') in my poe server.

My memory must getting rusty :)

Working just fine now, thanks.



Reply via email to