IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2005, 9:34:34 AM (21 years ago)
Author:
eugene
Message:

pcontrol dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/StartHost.c

    r3187 r3203  
    33int StartHost (Host *host) {
    44
     5  int pid;
    56  int stdio[3];
    67
    7   pid = rconnect (CONNECT, host[0].hostname, PCLIENT, stdio);
     8  /* pid = rconnect (CONNECT, host[0].hostname, PCLIENT, stdio); */
     9
     10  pid = rconnect ("ssh", host[0].hostname, "pclient", stdio);
    811  if (!pid) {     /** failure to start **/
    912    fprintf (stderr, "failure to start %s\n", host[0].hostname);
    10     PutHost (host, PCONTROL_HOST_DOWN, QUEUE_BOTTOM);
     13    PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);
    1114    return (FALSE);
    1215  }
     
    1518  host[0].stderr = stdio[2];
    1619  host[0].pid    = pid;
    17   PutHost (host, PCONTROL_HOST_IDLE, QUEUE_BOTTOM);
     20  PutHost (host, PCONTROL_HOST_IDLE, STACK_BOTTOM);
    1821  return (TRUE);
    1922}
Note: See TracChangeset for help on using the changeset viewer.