From 76043c1e81058b21fb9d41c7fa612cc975339a9e Mon Sep 17 00:00:00 2001 From: Dan Boger Date: Thu, 8 Jan 2009 12:50:12 -0800 Subject: [PATCH 1/1] 1.5.2 - r326 - Add pidwait for the fork, to help fight zombies. Not sure if it's needed --- twirssi.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/twirssi.pl b/twirssi.pl index 97a0918..e1c46ac 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -11,8 +11,8 @@ $Data::Dumper::Indent = 1; use vars qw($VERSION %IRSSI); -$VERSION = "1.5"; -my ($REV) = '$Rev: 318 $' =~ /(\d+)/; +$VERSION = "1.5.2"; +my ($REV) = '$Rev: 326 $' =~ /(\d+)/; %IRSSI = ( authors => 'Dan Boger', contact => 'zigdon@gmail.com', @@ -245,6 +245,7 @@ sub cmd_login { $p = shift @pass; &cmd_login("$u $p"); } + return; } } else { ¬ice("/twitter_login requires either a username and password " @@ -436,6 +437,7 @@ sub get_updates { if ($pid) { # parent Irssi::timeout_add_once( 5000, 'monitor_child', [$filename] ); + Irssi::pidwait_add($pid); } elsif ( defined $pid ) { # child close STDIN; close STDOUT; -- 2.39.5