bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[updateb] "trap ... TERM" makes "kill pidofupdateb" rather useless


From: Andreas Metzler
Subject: [updateb] "trap ... TERM" makes "kill pidofupdateb" rather useless
Date: Sun, 10 Apr 2005 12:17:43 +0200
User-agent: Mutt/1.5.6+20040907i

Hello,
updatedb contains
-----------------
trap 'rm -f $LOCATE_DB.n; exit' HUP TERM
-----------------

which makes "kill pidofupdateb" less than useful. - The shell waits
for the currently running process to finish on its own, and *then*
runs the action specified by trap.

I've searched a little bit and failed to come up with a solution -
perhaps somebody else know the secret trick.

For reference, this is http://bugs.debian.org/303528
               cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]