From 402fa7ad9478eeafb09f29b184d8f46f6c6c70da Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 4 Aug 2007 14:57:30 +0000 Subject: [PATCH] Document pidwait_add() and pidwait_remove() perl functions. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4594 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- docs/perl.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/perl.txt b/docs/perl.txt index ff55a31e..2887478f 100644 --- a/docs/perl.txt +++ b/docs/perl.txt @@ -284,7 +284,7 @@ signal_stop_by_name(signal) Stop the signal with name `signal' that's currently being emitted. - *** timeouts / IO listener + *** timeouts / IO listener / pidwait timeout_add(msecs, func, data) Call `func' every `msecs' milliseconds (1000 = 1 second) with @@ -306,6 +306,16 @@ input_add(source, condition, func, data) input_remove(tag) Remove listener with tag. +pidwait_add(pid) + Adds `pid' to the list of processes to wait for. The pid must identify + a child process of the irssi process. When the process terminates, a + "pidwait" signal will be sent with the pid and the status from + waitpid(). This is useful to avoid zombies if your script forks. + +pidwait_remove(pid) + Removes `pid' from the list of processes to wait for. Terminated + processes are removed automatically, so it is usually not necessary + to call this function. *** Message levels