in reply to killing perl scripts
Both ysth and rev_1318 make excellent points. But, be careful with SIG handlers. 'kill -9' should be an ultimately last resort if nothing else works, not just a way to kill a script. If you read the perldoc on signals and the POSIX module POD, you should get a much better idea of what (and what not) to do.
Because I have read those, and know a bit about signals, I will mention one thing further; try to avoid setting $SIG{KILL} unless you're positive you know what you're doing. If your KILL handler doesn't work properly, you may find yourself up a very smelly stream without an appropriate nautical navigation tool. ;-)
radiantmatrix
require General::Disclaimer;
s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: killing perl scripts
by sgifford (Prior) on Dec 13, 2004 at 16:09 UTC | |
by radiantmatrix (Parson) on Dec 13, 2004 at 18:54 UTC |