3 ms·
IIRC, on Unix, Ctrl-\ sends the quit signal, which causes the process receiving it to do a core dump (before exiting), which can be used for post-mortem debuggi
by vram22 10y ago
IIRC, on Unix, Ctrl-\ sends the quit signal, which causes the process receiving it to do a core dump (before exiting), which can be used for post-mortem debugging, whereas Ctrl-C sends the kill signal, which makes the process terminate without any core dump. Those are the default actions for the signals.
https://en.wikipedia.org/wiki/Control-%5C https://en.wikipedia.org/wiki/Control-%5C
https://en.wikipedia.org/wiki/Core_dump https://en.wikipedia.org/wiki/Core_dump
https://en.wikipedia.org/wiki/Control-C https://en.wikipedia.org/wiki/Control-C
I remember doing:
sdb a.out . core
or something like that, in my C-on-Unix programming days earlier :)
sdb was a debugger.
- vram22 10y agoSpeaking of terminating Unix processes, here's a post I wrote a while ago: UNIX one-liner to kill a hanging Firefox process: http://jugad2.blogspot.in/2008/09/unix-one-liner-to-kill-hanging-firefox.html http://jugad2.blogspot.in/2008/09/unix-one-liner-to-kill-han... Some interesting comments on that post too, which go into slightly deeper details.