IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 5:31:41 PM (20 years ago)
Author:
eugene
Message:

cleanup of timeouts and thread-safety issues, controller comms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/LocalJob.c

    r7917 r8548  
    166166  result = 0;
    167167  for (i = 0; (i < 10) && (result == 0); i++) {
    168     usleep (10000);  /* 10 ms is min */
     168    usleep (10000);  // wait for job to exit
    169169    result = waitpid (job[0].pid, &waitstatus, WNOHANG);
    170170  }
     
    175175  result = 0;
    176176  for (i = 0; (i < 10) && (result == 0); i++) {
    177     usleep (10000);  /* 10 ms is min */
     177    usleep (10000);  // wait for job to exit
    178178    result = waitpid (job[0].pid, &waitstatus, WNOHANG);
    179179  }
Note: See TracChangeset for help on using the changeset viewer.