Re: file sync on close(2)
Re: file sync on close(2)
- Subject: Re: file sync on close(2)
- From: "Jay A. Kreibich" <email@hidden>
- Date: Mon, 14 Jun 2004 21:36:12 -0500
On Mon, Jun 14, 2004 at 09:16:20PM -0400, Marek Kozubal scratched on the wall:
>
On Mon, 14 Jun 2004, Jay A. Kreibich wrote:
>
>
> To repeat a third time: UPDATE(8) WON'T BE RUNNING. I CANNOT CALL
>
> SYNC(8).
>
>
Of course you can call sync(). updated mearly calls sync every 30
No, I can't. Or to be more specific, my script cannot. As I pointed
out in the original post, I'm trying to do this from a script. When I
send a SIGTERM to init it will kill *everything* including the script
I use to send the SIGTERM. Therefore no matter what my script looks
like, the last command executed will very likely be the "kill -s TERM 1".
My script cannot call sync(8) once the system is in single user mode
because my script has been killed by that point.
However, there is no need to call sync(8) if close(2) calls fsync(2)
or some similar function, which is why I asked my original question
about the behavior of close(2).
-j
--
Jay A. Kreibich | Integration & Software Eng.
email@hidden | Campus IT & Edu. Svcs.
<
http://www.uiuc.edu/~jak> | University of Illinois at U/C
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.