| 22 |  | #include <signal.h> | 
| 23 |  |  | 
| 24 |  | #include "platform.h" | 
| 25 | + | #include "rtprocess.h" | 
| 26 |  | #include "paths.h" | 
| 27 |  | #include "standard.h" | 
| 28 |  | #include "view.h" | 
| 95 |  |  | 
| 96 |  | struct { | 
| 97 |  | char    host[64];               /* control host name */ | 
| 98 | < | int     pid;                    /* control process id */ | 
| 98 | > | RT_PID  pid;                    /* control process id */ | 
| 99 |  | char    cfname[128];            /* control file name */ | 
| 100 |  | int     rnext;                  /* next frame to render */ | 
| 101 |  | int     fnext;                  /* next frame to filter */ | 
| 119 |  | char    *arcfirst, *arcnext;    /* pointers to first and next argument */ | 
| 120 |  |  | 
| 121 |  | struct pslot { | 
| 122 | < | int     pid;                    /* process ID (0 if empty) */ | 
| 122 | > | RT_PID  pid;                    /* process ID (0 if empty) */ | 
| 123 |  | int     fout;                   /* output frame number */ | 
| 124 |  | int     (*rcvf)();              /* recover function */ | 
| 125 |  | }       *pslot;                 /* process slots */ | 
| 128 |  | #define phostname(ps)   ((ps)->hostname[0] ? (ps)->hostname : astat.host) | 
| 129 |  | PSERVER *lastpserver;           /* last process server with error */ | 
| 130 |  |  | 
| 131 | < | static struct pslot * findpslot(int pid); | 
| 131 | > | static struct pslot * findpslot(RT_PID pid); | 
| 132 |  | static void checkdir(void); | 
| 133 |  | static VIEW * getview(int n); | 
| 134 |  |  | 
| 142 |  | static int runcom(char *cs); | 
| 143 |  | static int pruncom(char *com, char *ppins, int maxcopies); | 
| 144 |  | static void bwait(int ncoms); | 
| 145 | < | static int bruncom(char *com, int fout, int (*rf)()); | 
| 145 | > | static RT_PID bruncom(char *com, int fout, int (*rf)()); | 
| 146 |  | static int serverdown(void); | 
| 147 |  | static pscompfunc donecom; | 
| 148 |  | static int countviews(void); | 
| 1193 |  |  | 
| 1194 |  |  | 
| 1195 |  | static struct pslot * | 
| 1196 | < | findpslot(int pid)                      /* find or allocate a process slot */ | 
| 1196 | > | findpslot(RT_PID pid)                   /* find or allocate a process slot */ | 
| 1197 |  | { | 
| 1198 |  | register struct pslot   *psempty = NULL; | 
| 1199 |  | register int    i; | 
| 1267 |  | } | 
| 1268 |  |  | 
| 1269 |  |  | 
| 1270 | < | static int | 
| 1270 | > | static RT_PID | 
| 1271 |  | bruncom(                /* run a command in the background */ | 
| 1272 |  | char    *com, | 
| 1273 |  | int     fout, | 
| 1274 |  | int     (*rf)() | 
| 1275 |  | ) | 
| 1276 |  | { | 
| 1277 | < | int     pid; | 
| 1277 | > | RT_PID  pid; | 
| 1278 |  | register struct pslot   *psl; | 
| 1279 |  |  | 
| 1280 |  | if (noaction) { | 
| 1287 |  | bwait(1); | 
| 1288 |  | if (!silent) {                          /* echo command */ | 
| 1289 |  | PSERVER *ps; | 
| 1290 | < | int     psn = pid; | 
| 1290 | > | RT_PID  psn = pid; | 
| 1291 |  | ps = findjob(&psn); | 
| 1292 |  | printf("\t%s\n", com); | 
| 1293 |  | printf("\tProcess started on %s\n", phostname(ps)); |