Assaf Gordon wrote: > 4. > "fflush" instead of "fclose" seems to work OK, but I do not know > if there are other side effects: > > $ ./aa stdout fflush > /dev/full && echo ok || echo error > aa: fflush failed: No space left on device > error
Except that it does not work OK on NFS, as explained by the comment
in close-stream.c (written in 2006):
Even calling fflush is not always sufficient,
since some file systems (NFS and CODA) buffer written/flushed data
until an actual close call.
Bruno
