1320 |
|
zopt, oct1name, rawfile); |
1321 |
|
if (pfile != NULL && inchild()) { |
1322 |
|
/* rpict persistent mode */ |
1323 |
< |
if (!silent) { |
1323 |
> |
if (!silent) |
1324 |
|
printf("\t%s\n", combuf); |
1325 |
< |
fflush(stdout); |
1326 |
< |
} |
1325 |
> |
fflush(stdout); |
1326 |
|
sprintf(combuf, "rpict%s %s %s%s%s %s > %s", |
1327 |
|
rep, rppopt, res, po, opts, |
1328 |
|
oct1name, rawfile); |
1330 |
– |
fflush(stdout); |
1329 |
|
fp = popen(combuf, "w"); |
1330 |
|
if (fp == NULL) |
1331 |
|
goto rperror; |
1406 |
|
printf("\t%s\n", cs); |
1407 |
|
if (!nprocs) |
1408 |
|
return(0); |
1409 |
< |
fflush(stdout); /* flush output and pass to shell */ |
1409 |
> |
fflush(NULL); /* flush output and pass to shell */ |
1410 |
|
return(system(cs)); |
1411 |
|
} |
1412 |
|
|
1453 |
|
} |
1454 |
|
if (children_running >= nprocs) |
1455 |
|
wait_process(0); /* wait for someone to finish */ |
1456 |
< |
fflush(stdout); |
1456 |
> |
fflush(NULL); /* flush output */ |
1457 |
|
child_pid = fork(); /* split process */ |
1458 |
|
if (child_pid == 0) { /* we're the child */ |
1459 |
|
children_running = -1; |