IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8184


Ignore:
Timestamp:
Aug 4, 2006, 4:06:23 PM (20 years ago)
Author:
eugene
Message:

check for failure to start controller

Location:
trunk/Ohana/src/opihi/pantasks
Files:
3 edited

Legend:

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

    r7917 r8184  
    165165  if (job[0].task[0].host == NULL) return (FALSE);
    166166
    167   StartController ();   // XXX check for success
     167  if (!StartController ()) {
     168    gprint (GP_ERR, "failure to start pcontrol\n");
     169    return (FALSE);
     170  }
    168171
    169172  /** construct the line to be sent to the controller **/
  • trunk/Ohana/src/opihi/pantasks/controller_host.c

    r7917 r8184  
    1313
    1414  /* start controller connection (if needed) */
    15   StartController ();
     15  if (!StartController ()) {
     16    gprint (GP_ERR, "failure to start pcontrol\n");
     17    return (FALSE);
     18  }
    1619
    1720  sprintf (command, "host %s %s", argv[1], argv[2]);
  • trunk/Ohana/src/opihi/pantasks/controller_pulse.c

    r7917 r8184  
    1313
    1414  /* start controller connection (if needed) */
    15   StartController ();
     15  if (!StartController ()) {
     16    gprint (GP_ERR, "failure to start pcontrol\n");
     17    return (FALSE);
     18  }
    1619
    1720  sprintf (command, "pulse %d", atoi(argv[1]));
Note: See TracChangeset for help on using the changeset viewer.