Is kill function synchronous?

前端 未结 4 1349

Is the kill function in Linux synchronous? Say, I programatically call the kill function to terminate a process, will it return only when the inten

4条回答
  •  情书的邮戳
    2021-01-07 19:46

    The kill system call does not wait for the other process to do anything. The signal is posted to the target process and the system call returns. The target process notices the signal when it is scheduled to run.

提交回复
热议问题