X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=blobdiff_plain;f=stump%2Fbin%2FacceptFromMod.pl;fp=stump%2Fbin%2FacceptFromMod.pl;h=fde6b3d5f8e19bc8adb8cb5d8fe36ac8da11047d;hb=0ef2be669e468cfecd4879eee0c7dbf91b952880;hp=3e408f103d2b297b9f6571a89c6d94b9b4ed57d6;hpb=a2ed6c226ae9c2705affd66255b2796f000e4433;p=modbot-mtm.git diff --git a/stump/bin/acceptFromMod.pl b/stump/bin/acceptFromMod.pl index 3e408f1..fde6b3d 100755 --- a/stump/bin/acceptFromMod.pl +++ b/stump/bin/acceptFromMod.pl @@ -130,6 +130,7 @@ while( <> ) { } print STDERR "Comment is: $comment\n" if( $comment ); +print STDERR "Signal handling for SIGPIPE: $SIG{PIPE}.\n"; $ENV{'EXPLANATION'} = $comment; @@ -144,7 +145,7 @@ open( COMMAND, "| $command" ) || &processError( "$command failed" ); # "\n======================================= MODERATOR'S COMMENT: \n" . # $comment; # } -close( COMMAND ) or die "$? $!"; +close( COMMAND ) or die "$command $? $!"; &processError( "No action specified" ) if( $done ne "yes" );