On 08/12/2016 09:34 AM, Raymond Wooninck wrote:
On Friday, 12 August 2016 09:01:00 CEST Anton Aylward wrote:
On 08/11/2016 10:28 PM, Markus Slopianka wrote: If you're not root you can't kill processes you don't own True. But then again, I am able to shutdown my laptop from the KDE menu.
Please read the man page for the various forms of 'kill;
kill(2) killpg(2) tkill(2) tgkill(2) systemd.kill(5)
I don’t think that one could compare killing processes, with shutting down a computer.
I'm VERY curious as to why you say that. I would think that a shutdown is the ultimate !KILL! of all threads and processes :-) No, really. I'm running KDE and a few Gnomic applications like Thunderbird and Firefox and occasionally others like darktable. These are GUIs. They are layered on X11. To shut down "gracefully", that is, saving state & files and 'workspaces', X11 and derived processes can handle the SIGKILL and SIGSTOP. The signals SIGKILL and SIGSTOP cannot be caught or ignored! That has been so in Linux and UNIX for as long as I can remember. When you do use the shutdown or the exit from KDE - or Gnome or any other DM for that matter - the DM send the STOP and eventually KILL signals to its children. You can expect a proper shutdown of the file systems, flushing and unmounting. It might do this because it has received STOP or KILL signal 'from above'. None of this is new or special. It has been the case with X11 and its applications since ling before the existence of KDE or Gnome. I'm not saying that you can't perform a hard, ungraceful shutdown. I can hit the power button, but on reboot I expect a FSCk and possibly some !ouch! and I don't expect my working context/workspace to have been gracefully saved and restored. You can take that avenue if you wish; I prefer the graceful shutdown that occurs when my processes receive the STOP and KILL signals. -- "Too many preachers use the bible as a stepladder for their soapbox." -- John Tandervold -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org