NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Shutdown



On Tue, Jul 26, 2011 at 10:09:19PM +0200, Jan Danielsson wrote:
>    I have a machine which I installed soon after 5.0 was released, which
> I was been able to "shutdown -p now" cleanly until very recently -- when
> it exhibited the hanging symptom you describe. However, it's been
> consistently hanging like that ever since it happened the first time.

There is a known i386 regression in HEAD.

The attached patch fixes it for many people.

- Jukka.
Index: machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.706
diff -u -p -r1.706 machdep.c
--- machdep.c   1 Jul 2011 18:14:15 -0000       1.706
+++ machdep.c   27 Jul 2011 04:29:29 -0000
@@ -903,8 +903,7 @@ cpu_reboot(int howto, char *bootstr)
                }
 
                while (vfs_unmountall1(l, false, false) ||
-                      config_detach_all(boothowto) ||
-                      vfs_unmount_forceone(l))
+                   vfs_unmount_forceone(l))
                        ;       /* do nothing */
        } else
                suspendsched();


Home | Main Index | Thread Index | Old Index