I have a C program which fork()s and the child process unlink()s
/etc/installurl, opens /etc/installurl and writes to it. I _exit(0); and
I've tested it where the parent returns or exit()s and unless I
specifically call fclose() after the fwrite(), the processes will close
without actually writing to the file.

Is this correct functionality? It seems like it ought to not need to have
an fclose() or even an fflush().
-Luke

Reply via email to