# | Line 7 | Line 7 | static char SCCSid[] = "$SunId$ LBL"; | |
---|---|---|
7 | /* | |
8 | * ambient.c - routines dealing with ambient (inter-reflected) component. | |
9 | * | |
10 | – | * The macro AMBFLUSH (if defined) is the number of ambient values |
11 | – | * to wait before flushing to the ambient file. |
12 | – | * |
10 | * 5/9/86 | |
11 | */ | |
12 | ||
# | Line 324 | Line 321 | int creat; | |
321 | putc('\n', ambfp); | |
322 | putambmagic(ambfp); | |
323 | fflush(ambfp); | |
324 | + | #ifndef NIX |
325 | + | sync(); /* protect against NFS buffering */ |
326 | + | #endif |
327 | } else if (checkheader(ambfp, AMBFMT, NULL) < 0 || !hasambmagic(ambfp)) | |
328 | error(USER, "bad ambient file"); | |
329 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |