5 ms·
Some tools respond to a Unix signal (https://en.wikipedia.org/wiki/Signal_(IPC) https://en.wikipedia.org/wiki/Signal_(IPC)) this way, usually SIGUSR1 or SIGUSR2
by dspillett 6y ago
Some tools respond to a Unix signal (https://en.wikipedia.org/wiki/Signal_(IPC) https://en.wikipedia.org/wiki/Signal_(IPC)) this way, usually SIGUSR1 or SIGUSR2 though I've seen SIGCONT used too. SIGINT also, though that feels wrong to me as it circumvents the commonly expected response to ctrl-c.
- p4bl0 6y agoYes that's actually what I did for my last long running jobs: I trapped SIGUSR1 so that when my process receives it it flushes its buffers.