[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Rework shutDown() to better accomidate "nokill" better.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [PATCH] Rework shutDown() to better accomidate "nokill" better.
- Date: Wed, 29 Jul 2009 17:18:05 -0400
> +void shutDown(int doKill, reboot_action rebootAction) {
> + if (rebootAction == POWEROFF || rebootAction == REBOOT) {
> + performUnmounts(doKill);
> + performTerminations(doKill);
> + if (!doKill)
> + performReboot(rebootAction);
> + }
> +
> printf("you may safely reboot your system\n");
> - signal(SIGINT, rebootHandler);
> - while (1) sleep(60);
> - }
> + signal(SIGINT, rebootHandler);
> + while (1) {
> + sleep(1);
> + if (shouldReboot) {
> + performUnmounts(1);
> + performTerminations(1);
> + performReboot(REBOOT);
> + }
> + }
I was the last person to touch this file so I guess I'll comment on it.
In my patch, I was concerned about making sure things get "unmounted"
before we kill NetworkManager. This patch preserves that order so I
guess it's fine with me.
- Chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]