What is the difference between SIGSTOP and SIGTSTP?

前端 未结 3 1741
南方客
南方客 2020-11-30 19:00

Just wondering about the difference between SIGSTOP and SIGTSTP signals.

3条回答
  •  遥遥无期
    2020-11-30 19:20

    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) may also be sent through the tty driver by a user typing on a keyboard, usually Control-Z.

    • SIGSTOP cannot be ignored. SIGTSTP might be.

提交回复
热议问题