IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11388


Ignore:
Timestamp:
Jan 29, 2007, 12:43:13 PM (19 years ago)
Author:
eugene
Message:

adding realhost

Location:
trunk/Ohana/src/opihi
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/include/pantasks.h

    r11084 r11388  
    144144  char   *stdout_dump;
    145145  char   *stderr_dump;
     146  char   *realhost;
    146147
    147148  int         stdout_size;              /* size of pending stdout buffer (controller) */
  • trunk/Ohana/src/opihi/include/pcontrol.h

    r11052 r11388  
    6767  char       **argv;
    6868  char        *hostname;
     69  char        *realhost;
    6970  int          exit_status;
    7071  int          Reset;
  • trunk/Ohana/src/opihi/pantasks/JobOps.c

    r9037 r11388  
    114114
    115115  job[0].task = task;
     116  job[0].realhost = NULL;
    116117 
    117118  /* if we decide we need to be able to dynamically set task qualities (like host, timeouts, etc), the we will
  • trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c

    r11052 r11388  
    3131      job[0].host = NULL;
    3232      host[0].job = NULL;
     33      if (job[0].realhost) free (job[0].realhost);
     34      job[0].realhost = NULL;
    3335      PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);
    3436      PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
  • trunk/Ohana/src/opihi/pcontrol/JobOps.c

    r10652 r11388  
    145145  job[0].JobID    = NextJobID();
    146146  job[0].Reset    = FALSE;
     147  job[0].realhost = NULL;
    147148
    148149  /* do this step on start? */
  • trunk/Ohana/src/opihi/pcontrol/StartJob.c

    r11052 r11388  
    4848      job[0].host = NULL;
    4949      host[0].job = NULL;
     50      if (job[0].realhost) free (job[0].realhost);
     51      job[0].realhost = NULL;
    5052      PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
    5153      PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
     
    7880
    7981    default:
     82      job[0].realhost = strcreate (host[0].hostname);
    8083      job[0].pid = status;
    8184      PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
  • trunk/Ohana/src/opihi/pcontrol/check.c

    r11052 r11388  
    2828    gprint (GP_LOG, "STDERR %d\n", job[0].stderr_size);
    2929    gprint (GP_LOG, "DTIME %lf\n", job[0].dtime);
     30    if (job[0].realhost) {
     31        gprint (GP_LOG, "HOSTNAME %s\n", job[0].realhost);
     32    } else {
     33        gprint (GP_LOG, "HOSTNAME NONE\n");
     34    }
    3035    PutJob (job, StackID, STACK_BOTTOM);
    3136    ClearCheckPoint ();
Note: See TracChangeset for help on using the changeset viewer.