r41461 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41460‎ | r41461 | r41462 >
Date:01:08, 1 October 2008
Author:dale
Status:old
Tags:
Comment:
updated transcode script
Modified paths:
  • /trunk/extensions/MetavidWiki/maintenance/transcode_to_flv.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/maintenance/transcode_to_flv.php
@@ -155,8 +155,9 @@
156156 array('LIMIT'=>1));
157157 }
158158 }
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 $!");
161162 return $PID;
162163 }
163164 //Verifies if a process is running in linux

Status & tagging log