Index: trunk/extensions/MetavidWiki/maintenance/transcode_to_flv.php |
— | — | @@ -155,8 +155,9 @@ |
156 | 156 | array('LIMIT'=>1)); |
157 | 157 | } |
158 | 158 | } |
159 | | -function simple_run_background($command){ |
160 | | - $PID = shell_exec("nohup $command > /dev/null & echo $!"); |
| 159 | + |
| 160 | +function simple_run_background($command, $priority=10){ |
| 161 | + $PID = shell_exec("nohup nice -n $priority $command > /dev/null & echo $!"); |
161 | 162 | return $PID; |
162 | 163 | } |
163 | 164 | //Verifies if a process is running in linux |