chiark
/
gitweb
/
~webstump
/
modbot-mtm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debugging of modack.approved pipe failures
[modbot-mtm.git]
/
stump
/
bin
/
acceptFromMod.pl
diff --git
a/stump/bin/acceptFromMod.pl
b/stump/bin/acceptFromMod.pl
index 3e408f103d2b297b9f6571a89c6d94b9b4ed57d6..fde6b3d5f8e19bc8adb8cb5d8fe36ac8da11047d 100755
(executable)
--- 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 "Comment is: $comment\n" if( $comment );
+print STDERR "Signal handling for SIGPIPE: $SIG{PIPE}.\n";
$ENV{'EXPLANATION'} = $comment;
$ENV{'EXPLANATION'} = $comment;
@@
-144,7
+145,7
@@
open( COMMAND, "| $command" ) || &processError( "$command failed" );
# "\n======================================= MODERATOR'S COMMENT: \n" .
# $comment;
# }
# "\n======================================= MODERATOR'S COMMENT: \n" .
# $comment;
# }
-close( COMMAND ) or die "$? $!";
+close( COMMAND ) or die "$
command $
? $!";
&processError( "No action specified" )
if( $done ne "yes" );
&processError( "No action specified" )
if( $done ne "yes" );