From: Ben Gras Date: Tue, 14 Mar 2006 13:54:20 +0000 (+0000) Subject: Do a sync() before reboot()ing in FS. X-Git-Tag: v3.1.2a~242 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.log?a=commitdiff_plain;h=def8c13ba83cf004a1f8c6dd2d93da731bac3cf5;p=minix.git Do a sync() before reboot()ing in FS. --- diff --git a/servers/fs/misc.c b/servers/fs/misc.c index eafc1c662..2597d3eec 100644 --- a/servers/fs/misc.c +++ b/servers/fs/misc.c @@ -260,6 +260,9 @@ PUBLIC int do_reboot() /* Only PM may make this call directly. */ if (who_e != PM_PROC_NR) return(EGENERIC); + /* Sync any unwritten buffers, before exiting processes (drivers). */ + do_sync(); + /* Do exit processing for all leftover processes and servers. */ for (i = 0; i < NR_PROCS; i++) { if((m_in.endpt1 = fproc[i].fp_endpoint) != NONE)