Browse Source

Fixed issue #1938346 related to non-POSIX use of 'ps' command in jobs checking

spficklin 12 years ago
parent
commit
dd77e3aa9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_core/api/tripal_core_jobs.api.inc

+ 1 - 1
tripal_core/api/tripal_core_jobs.api.inc

@@ -105,7 +105,7 @@ function tripal_jobs_check_running() {
           "WHERE TJ.end_time IS NULL and NOT TJ.start_time IS NULL ";
   $jobs = db_query($sql);
   while ($job = db_fetch_object($jobs)) {
-    $status = `ps --pid=$job->pid --no-header`;
+    $status = `ps -p $job->pid -o pid=`;
     if ($job->pid && $status) {
       // the job is still running so let it go
       // we return 1 to indicate that a job is running