递归sigstop
我可以使用以下pid将停止信号发送到PID:
kill -STOP PID
然后恢复:
kill -CONT PID
如何递归将其发送给树中的所有PID的孩子?
I can send a STOP signal to a pid using:
kill -STOP PID
And then resume it:
kill -CONT PID
How do I recursively send this to all the children of the pid in the tree as well?z
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是为了冻结Fluxbox及其所有的孩子。
因此,我写了一个可以解决问题的脚本。
自然,它必须从tmux/屏幕/TTY/控制台启动。
This was to freeze fluxbox and all it's children.
So I wrote a script that does the trick.
Naturally, it has to be launched from tmux/screen/tty/console.