| 11 |
|
#include "rholo.h" |
| 12 |
|
#include "random.h" |
| 13 |
|
#include <signal.h> |
| 14 |
– |
#include <sys/types.h> |
| 14 |
|
#include <sys/stat.h> |
| 15 |
|
|
| 16 |
|
#ifndef FRAGWARN |
| 216 |
|
maxdisk = 1024.*1024.*vflt(DISKSPACE); |
| 217 |
|
/* set up memory cache */ |
| 218 |
|
if (outdev == NULL) |
| 219 |
< |
hdcachesize = 0; /* manual flushing */ |
| 219 |
> |
hdcachesize = 0; /* manual flushing */ |
| 220 |
|
else if (vdef(CACHE)) |
| 221 |
|
hdcachesize = 1024.*1024.*vflt(CACHE); |
| 222 |
|
/* open report file */ |
| 271 |
|
sigdie(SIGXCPU, "CPU limit exceeded"); |
| 272 |
|
sigdie(SIGXFSZ, "File size exceeded"); |
| 273 |
|
#endif |
| 274 |
< |
/* protect holodeck file */ |
| 274 |
> |
/* protect holodeck file */ |
| 275 |
|
orig_mode = resfmode(hdlist[0]->fd, ncprocs>0 ? 0 : 0444); |
| 276 |
|
return; |
| 277 |
|
memerr: |
| 530 |
|
p->next = freepacks; /* push onto free list */ |
| 531 |
|
freepacks = p; |
| 532 |
|
} |
| 533 |
< |
if (n2flush > RTFLUSH) { |
| 533 |
> |
if (n2flush >= RTFLUSH) { |
| 534 |
|
if (outdev != NULL) |
| 535 |
|
hdsync(NULL, 1); |
| 536 |
|
else |