16 |
|
#include <sys/time.h> |
17 |
|
|
18 |
|
#ifndef MAXPROC |
19 |
< |
#define MAXPROC 16 |
19 |
> |
#define MAXPROC 64 |
20 |
|
#endif |
21 |
|
|
22 |
+ |
int nprocs = 0; /* running process count */ |
23 |
+ |
|
24 |
|
static char pfile[] = TEMPLATE; /* persist file name */ |
25 |
|
|
26 |
|
static int rtpd[MAXPROC][3]; /* process descriptors */ |
27 |
|
static float *rtbuf = NULL; /* allocated i/o buffer */ |
28 |
|
static int maxqlen = 0; /* maximum packets per queue */ |
27 |
– |
static int nprocs = 0; /* number of processes */ |
29 |
|
|
30 |
|
static PACKET *pqueue[MAXPROC]; /* packet queues */ |
31 |
|
static int pqlen[MAXPROC]; /* packet queue lengths */ |
57 |
|
rtargv[rtargc++] = "-y"; rtargv[rtargc++] = "0"; |
58 |
|
rtargv[rtargc++] = "-fff"; |
59 |
|
rtargv[rtargc++] = vbool(VDIST) ? "-ovl" : "-ovL"; |
60 |
< |
rtargv[rtargc++] = nowarn ? "-w-" : "-w+"; |
60 |
> |
if (nowarn) |
61 |
> |
rtargv[rtargc++] = "-w-"; |
62 |
|
if (npt > 1) { |
63 |
|
mktemp(pfile); |
64 |
|
rtargv[rtargc++] = "-PP"; rtargv[rtargc++] = pfile; |