Ritesh Raj Sarraf, on Tue 09 Feb 2016 18:47:36 +0530, wrote: > On Tue, 2016-02-09 at 13:55 +0100, Samuel Thibault wrote: > > Could somebody take the time to add to gnumach an emergency shortcut > > which triggers the shutdown? I'm really surprised nobody thought > > about > > it. > > Just curious about how this is supposed to be done.
Simply the normal shutdown procedure: notifying the startup process that it should notify the filesystem processes, which make the filesystems read-only, write what's pending, and then we can reboot with not too much harm. Another way is to use reboot-hurd instead of reboot. But one may not even have access to a prompt to type it, thus having a keyboard shortcut that works all the time. > On Linux, for processes which are blocked (maybe of CPU) are in Deep > Uninterruptible State. A state that even the Linux kernel is often not > able to kill the process, if in. There are little cases where that happens, concerning mach, since most of posix is implemented in userland. Samuel

