Followup Id9f2fea7: Remove wall time restriction for readline.
authorLiangent <liangent@gmail.com>
Sun, 27 Jan 2013 06:15:45 +0000 (14:15 +0800)
committerLiangent <liangent@gmail.com>
Sun, 27 Jan 2013 06:15:45 +0000 (14:15 +0800)
Using such restriction breaks the interactive user interface, and it
doesn't make sense to have wall time limit when waiting for user input.

Change-Id: Id8fa8e9f0d0df58aa879e7bc83bec2a55674b4ab

maintenance/Maintenance.php

index 45df0e9..a386bd8 100644 (file)
@@ -1210,7 +1210,7 @@ abstract class Maintenance {
                        $encPrompt = wfEscapeShellArg( $prompt );
                        $command = "read -er -p $encPrompt && echo \"\$REPLY\"";
                        $encCommand = wfEscapeShellArg( $command );
-                       $line = wfShellExec( "$bash -c $encCommand", $retval );
+                       $line = wfShellExec( "$bash -c $encCommand", $retval, array(), array( 'walltime' => 0 ) );
 
                        if ( $retval == 0 ) {
                                return $line;