Re: How does Linux shutdown?
Quoting Chun Kit Edwin Lau <try_email_me@yahoo.ca>:
> Hi everyone,
>
> I am curious about how Linux does the shutdown. The kernel send
> the TERM signal to all processes when the shutdown is initiated. But
> does the kernel wait for the every process to finish before the kernel
> halt? If not, will there be data lost then?
>
It waits a period of time and then sends all processes a KILL signal.
If an app is hung in an inconsistent state or takes too long to
cleanup, yes it will lose data. The alternative is a machine that
will not shutdown because one app is hung.
Jeffrey
Reply to: