From a76bedb1a8643d17fc1f5e0a62a01c872126644b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 5 Sep 2008 03:32:09 +0000 Subject: [PATCH] In wfShellExec(), log return code 127 to a special log file, to check for missing executables on the Wikimedia cluster. --- includes/GlobalFunctions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a58bbaf6af..4d50956e99 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2113,6 +2113,10 @@ function wfShellExec( $cmd, &$retval=null ) { passthru( $cmd, $retval ); $output = ob_get_contents(); ob_end_clean(); + + if ( $retval == 127 ) { + wfDebugLog( 'exec', "Possibly missing executable file: $cmd\n" ); + } return $output; } -- 2.20.1