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/ControllerOps.c

    r8184 r8548  
    290290    status = ReadtoIOBuffer (&buffer, stdout_fd[0]);
    291291    p = memstr (buffer.buffer, "CONNECTED", buffer.Nbuffer);
    292     usleep (10000);
     292    usleep (10000); // wait for controller to start up
    293293  }
    294294  if (status == 0) goto pipe_error;
     
    464464  result = waitpid (ControllerPID, &waitstatus, WNOHANG);
    465465  for (i = 0; (i < 10) && (result == 0); i++) {
    466     usleep (10000);  /* 10 ms is min */
     466    usleep (10000);  // wait for controller to exit
    467467    result = waitpid (ControllerPID, &waitstatus, WNOHANG);
    468468  }
Note: See TracChangeset for help on using the changeset viewer.