9 |
|
#include <ctype.h> |
10 |
|
|
11 |
|
#include "platform.h" |
12 |
– |
#include "rtprocess.h" |
12 |
|
#include "mkillum.h" |
13 |
|
#include "random.h" |
14 |
|
|
227 |
|
} |
228 |
|
if (maxbytes < 0) |
229 |
|
error(SYSTEM, "cannot start rtrace process"); |
231 |
– |
if (!i && np > 1) |
232 |
– |
sleep(2); /* wait for persist file */ |
230 |
|
rtp->bsiz = maxbytes/(6*sizeof(float)); |
231 |
|
rtp->buf = (float *)malloc(6*sizeof(float)*rtp->bsiz--); |
232 |
|
rtp->dest = (float **)calloc(rtp->bsiz, sizeof(float *)); |
235 |
|
rtp->nrays = 0; |
236 |
|
if (i == np) /* last process? */ |
237 |
|
break; |
238 |
+ |
if (np > 1) |
239 |
+ |
sleep(2); /* wait for persist file */ |
240 |
|
rtp->next = (struct rtproc *)malloc(sizeof(struct rtproc)); |
241 |
|
if (rtp->next == NULL) |
242 |
|
error(SYSTEM, "out of memory in init"); |