diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2007-08-04 14:57:30 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-08-04 14:57:30 +0000 |
commit | 402fa7ad9478eeafb09f29b184d8f46f6c6c70da (patch) | |
tree | 1d9940c053435cdd019eaa1ee2a887708a4e6282 /docs | |
parent | 834ee1fe66495aa82016ed7cabea450b7a3257c4 (diff) | |
download | irssi-402fa7ad9478eeafb09f29b184d8f46f6c6c70da.zip |
Document pidwait_add() and pidwait_remove() perl functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4594 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'docs')
-rw-r--r-- | docs/perl.txt | 12 |
1 files changed, 11 insertions, 1 deletions
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 |