I did read that sleep can't handle any SIGNAL. So it seems to me that when I send SIGTERM to it, it should ignores it.    sleep 10000 &amp; 26322 kill -s SIGTERM 26322 [1]+  Exited             sleep 1000    Why sleep is killed ? After all, it doesn't install any signal handlers.
121378
Most descriptions of SIGTERM and SIGKILL point out that SIGKILL,     In contrast to SIGTERM and SIGINT, [...] cannot be caught or ignored [...] ()   Is this the only difference between SIGTERM and SIGKILL? In particular, if a process does not install a SIGTERM handler, is there any difference at all between sending SIGTERM or SIGKILL to the process?
85909
Is it possible to stop my laptop going to sleep when I close the lid?  GNOME 3.20, Fedora 24.    My laptop does not reliably wake from sleep.  (It happens to be a hardware issue... I think I basically killed it while trying to replace a wifi card.  But I want to keep using it for a while longer).
11663
I am looking for a way to clean up the mess when my top-level script exits.  Especially if I want to use set -e, I wish the background process would die when the script exits.
37538
While I'm downloading a large file on Windows 7 using Google Chrome, my computer goes to sleep. I could obviously set the computer to not sleep at all (or change the interval before the computer sleeps).  What I want to know is: Is there a way to make Windows 7 not sleep as long as a download is in progress? (perhaps when any network activity is going on?). I've looked in the Advanced Power settings, and haven't seen any obvious setting.
83138
If I issue the trap builtin twice [for the same signal], what happens? Is the second command added to the first, or does it replace the first?  trap Foo SIGINT ... trap Bar SIGINT ...   When SIGINT happens, does Bash just run Bar, or does it run Foo as well? Or something else...?
53899
I accidentally "stopped" my telnet process.  Now I can neither "switch back" into it, nor can I kill it (it won't respond to kill 92929, where 92929 is the processid.)  So, my question is, if you have a stopped process on linux command line, how do you switch back into it, or kill it, without having to resort to kill -9?
104543
I'm trying to build a process container. The container will trigger other programs. For example - a bash script that launches running background tasks with '&amp;' usage.  The important feature I'm after is this: when I kill the container, everything that has been spawned under it should be killed. Not just direct children, but their descendants too.  When I started this project, I mistakenly believed that when you killed a process its children were automatically killed too. I've sought advice from people who had the same incorrect idea. While it's possible to catch a signal and pass the kill on to children, that's not what I'm looking for here.  I believe what I want to be achievable, because when you close an xterm, anything that was running within it is killed unless it was nohup'd. This includes orphaned processes. That's what I'm looking to recreate.  I have an idea that what I'm loooking for involves unix sessions.  If there was a reliable way to identify all the descendants of a process, it would be useful to be able to send them arbitrary signals, too. e.g. SIGUSR1.
89423
When I start an SSH session that executes a long-running command, what happens with Ctrl+C (SIGINT) handling? I can see that the SSH session is closed, but I am not sure who gets the SIGINT first: is it...  the remote long-running command? that is, (a) the signal handler in the remote command is called and stops the remote command, (b) the shell that spawned it detects that the command stopped, and stops as well (c) the remote sshd detects the shell stopped, so it closes the connection or  the local ssh receives the signal, and closes the connection.   I think that (1) is happening, but want to make sure. I am also uncertain about what happens with shell handling of SIGINTs in this case. For example, if I ... ssh remote 'while true ; do sleep 1 ; date ; done'  and Ctrl+C, then the remote connection is dropped. Is there a way to run the remote command under a shell that will stay alive after Ctrl+C? That is, in this case, stop the loop and allow me to keep working on the remote shell?
42930
Hibernate worked correctly when I had been using Ubuntu 17.04. After upgrade to 17.10 I couldn't resume because of black screen after resume ().   After upgrade to 18.04 if I try to start my computer after hibernation it boots as if there was no hibernation done.
32385
I have to stop windows from going into sleep when my program is running.  And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep. Therefore SetThreadExecutionState is not enough.  Or...I don't actually have to prevent the sleep completely, only delay it 5-10sec to allow my program to finish a task.  (I know that this is bad program behavior but it's only for personal use.)
103713
Trying to create an alarm of sorts.  Task runs fine, computer wakes up from sleep fine, but the screen's black till there's user input. Anyway I can get the screen to light up upon waking?
46129
I really like the look of the output of   But that script is only used for Input/Output operations.  How can I use it as a replacement for sleep but with visual feedback?  sleep 10
122594
I am running Linux Mint 18.2 with KDE Plasma. Recently I noticed that most of the times I copy large files to removable drives the process hangs just before finish.  I opened KSysGuard and saw that the process of file.so is in disk sleep. When this happens the process seems not receiving any kill or end signal. I decided to reboot, opened a terminal in Konsole and ran reboot command. But the reboot also got stuck in the middle! I had to press the power button and force shutdown my laptop.  Now I want to know is it impossible to kill or end a process that is in I/O Sleep state ?
118494
I'm using Windows 7 , I set my drive to sleep after 10 minutes and it works but, when I shut down windows my hard drive resume from sleep. Why? It shouldn't keep hard drive sleep and shut down the PC ?
40141
It seems like there are many ways in which a Ubuntu's settings can be permanently manipulated to sleep when desired as long as predetermined conditions are met.  However, these are more permanent solutions that don't take into account rare tasks that may want to temporarily fore go standard policy.  The problem that I am running into is that I have a very long running script to do some backups and I don't want the computer to sleep or hibernate while that particular process is running which usually take 30-50 minutes.  Therefore, is there a command that I could include into my backup script that would prevent the system from hibernating/sleeping while the backup script is running and is there also a command to restore the normal default power policy after the backup has finished?  something like  #!/usr/bin/bash #disable normal powerpolicy disable-power-policies backup /dev/sda /dev/sdb /dev/fioa /dev/fiob #enable power policies. enable-power-policies
108067
Often I have a lot of stuff open and don't feel like shutting down my laptop, so I just use sleep mode when I'm transferring it. But I have no idea if this might have any disadvantages.  So my question: are there technical considerations that would make it detrimental to put your computer in sleep mode every time?  Associated implications:   Would any such issues be mitigated by turning off my computer every once in a while?  Is continuous use of sleep mode known to slow down a system in any way, and for what technical reason if so?  Is continuous use of sleep mode known to cause any long-term side effects, and for what technical reason if so??   FYI I'm using Windows 7 on a laptop.
32899
I want to start a programm with timeout, how can I kill the process using SIGINT and SIGKILL? If the programm not terminate within 5 seconds, send SIGINT. If it’s still running after 10 seconds (in total), send SIGKILL.  I already did timeout -s SIGINT nano; timeout -s SIGKILL nano but its not working, can somebody help me?