标签: node.js signals posix send
我刚搜索了很多,无法找到从nodejs发送POSIX信号的方法。
答案 0 :(得分:0)
我无法直接从简单节点js发送信号所以我使用shelljs来调用shell comamand kill来发送我的信号,如下所示
require('shelljs/global'); exec('kill -16 12345')