DragonFly bugs List (threaded) for 2007-01
DragonFly BSD
DragonFly bugs List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Crash on shutdown


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 07:16:12 +0100

Matthew Dillon wrote:
 	if (panicstr == NULL) {
 		shutdown_cleanup_proc(curproc);
 		shutdown_cleanup_proc(&proc0);
-		if (initproc)
+		if (initproc) {
+			if (initproc != curproc) {
+				ksignal(initproc, SIGSTOP);
+				tsleep(boot, 0, "shutdn", hz / 20);
+			}
 			shutdown_cleanup_proc(initproc);
+		}
 		vfs_cache_setroot(NULL, NULL);
 	}

oooh. evil. can't we just kill init?


cheers
 simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: signature.asc
Description: OpenPGP digital signature



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