Re: Question about cancelling sub-routine



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]