开发者

giving signals to other processes

开发者 https://www.devze.com 2023-04-12 06:31 出处:网络
I am writing a shell that needs to be able to restart a stopped process if the user 开发者_开发问答inputs a certain command.

I am writing a shell that needs to be able to restart a stopped process if the user 开发者_开发问答inputs a certain command.

My question is: which system call do I use to be able to give the signal of SIGCONT to the proper pid/pgid?


kill(pid, SIGCONT)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号