IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2012, 3:12:16 PM (14 years ago)
Author:
eugene
Message:

rconnect now in libohana

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/imreg/SetSignals.c

    r27611 r33660  
    9090  char username[256], machine[256];
    9191  char line[512];
    92   int i, wsock, rsock;
     92  int i, iosock[3];
    9393  struct stat filestat;
    9494
     
    9999
    100100  /* send signal to remote machine */
    101   if (!rconnect (machine, CONNECT, &rsock, &wsock)) {
    102     fprintf (stderr, "can't make connection to machine %s to kill process %d\n", machine, pid);
     101  int errorInfo;
     102  if (!rconnect (CONNECT, machine, "/bin/csh", iosock, &errorInfo, TRUE)) {
     103    fprintf (stderr, "can't make connection to machine %s to kill process %d (error %d)\n", machine, pid, errorInfo);
    103104    exit (1);
    104105  }
    105106  sprintf (line, "kill -TERM %d\n", pid);
    106   if (write (wsock, line, strlen (line)) != strlen(line)) {
     107  if (write (iosock[0], line, strlen (line)) != strlen(line)) {
    107108    fprintf (stderr, "error sending signal\n");
    108109    exit (1);
Note: See TracChangeset for help on using the changeset viewer.