How to send a signal to a process in C?

后端 未结 3 634
面向向阳花
面向向阳花 2020-12-11 01:16

I need to send a signal to a process and when the process receives this signal it does some things, how is this best achieved in C?

3条回答
  •  自闭症患者
    2020-12-11 02:09

    If you happen to be on one of the Unix variants, the following man pages will help:

    man 2 kill
    man 2 signal
    man 2 sigvec
    

提交回复
热议问题