News for hackers. Stuff that matters.
Re:A guide to Linux signals by mixblast on Tuesday November 24, 2015 @06:49AM (#10620239)
What about SIGSTOP and SIGCONT? They're quite useful to pause and resume processes (Ctrl-Z).
Re:A guide to Linux signals by noselasd on Tuesday November 24, 2015 @06:58AM (#10620258)
And indeed also very useful for testing. "what happens if we simulate this process being a bit slow" - send it a SIGSTOP. Doing so can simulate a number of other weird cases too as observed from the outside , such as a process trashing on swap, NFS hanging.

I've found that doing that to etcd causes other etcd in the cluster to randomly hang - while it handles a lot of other failures fine (instant poweroff, network partitioning, randomly crash etcd, sending SIGSTOP to on member of a cluster breaks everything - I don't know if that's improved since I did those tests though)

Re:A guide to Linux signals by teddyh on Tuesday November 24, 2015 @09:33AM (#10620879)
As I usually have to point out, Ctrl-Z sends SIGTSTP, which can be caught by a signal handler – unlike SIGSTOP, which is not sent by any key in the terminal driver, and which can not be caught by a signal handler.