3 ms·
Does it make sense to optionally pass the signal you want to send as an argument? pact --signal SIGINT $PID1 $PID2 pact -s SIGKILL $PID1 $PID2 pact
by nodesocket 11y ago
Does it make sense to optionally pass the signal you want to send as an argument?
pact --signal SIGINT $PID1 $PID2
pact -s SIGKILL $PID1 $PID2
pact $PID1 $PID2 # uses SIGTERM by default
- nickodell 11y agoI wrote this to scratch an itch. Is this a feature that would make pact useful to you? If so, I can add it. I debated about making it send SIGKILL shortly after sending SIGTERM, but I was having troubling thinking of an unsurprising way to implement it.
- nodesocket 11y agoI can't think of a current itch, but think about sending SIGHUP (refresh config) instead of killing processes.