Re: Question about cancelling sub-routine
- From: Kevin Ryde <user42 zip com au>
- To: Mike Martin <redtux1 gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Question about cancelling sub-routine
- Date: Sun, 15 Aug 2010 07:08:32 +1000
Mike Martin <redtux1 gmail com> writes:
kill (15,$pid1,$pid); ## clears up running external proc ##
if (kill($pid1,$pid) !=0){
Don't forget a bit of time in there for the other process to actually
act on the sigterm (removing temp files or whatever). There's a
Glib::Child->watch_add to wait on that if desired (as long as you're not
using SIGCHLD yourself).
--
Waitress to Customer at dubious fish restaurant:
"I recommend the plaice ... next door."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]