Re: Signal on process end



* Ratcliffe, Jeffrey (Peters) <Jeffrey Ratcliffe External eads com> [2006-08-10 16:35]:
How best do I see when the process has finished?

You try to read from it and get undef.

Yes, well that implies that I have to find a way of polling it
without blocking.

I was hoping that there was a watch or event I could use.

See `perldoc -f select`.

I was also wondering about a thread to do

waitpid($pid, 0);

and then destroy the dialog.

But I was hoping I could avoid using threads.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



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