Re: [PATCH] Rework shutDown() to better accomidate "nokill" better.

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

 



> +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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux