What is the difference between SIGSTOP and SIGTSTP?

user1419715 picture user1419715 · Aug 9, 2012 · Viewed 57.5k times · Source

Just wondering about the difference between SIGSTOP and SIGTSTP signals.

Answer

jlliagre picture jlliagre · Aug 9, 2012

Both signals are designed to suspend a process which will be eventually resumed with SIGCONT. The main differences between them are:

  • SIGSTOP is a signal sent programmatically (eg: kill -STOP pid ) while SIGTSTP (for signal - terminal stop