panicwrap icon indicating copy to clipboard operation
panicwrap copied to clipboard

Signal handling

Open ConradIrwin opened this issue 11 years ago • 1 comments

The current implementation doesn't blend very well with process supervisors or kill on linux as it absorbs signals intended for the actual app. This is fixable in some cases by handling the signal and passing it on, but not in all cases (like kill -9).

I'm working on an implementation that will use a subprocess (and dup2) to have the monitor as a child process to avoid this issue, but it won't (as far as I know) work on windows. Would you be open to adding that as an option (or as the default on supported platforms) to panicwrap, or should I publish my own library (hopefully containing some of your excellent code :).

ConradIrwin avatar Aug 17 '14 04:08 ConradIrwin

...to have the monitor as a child process to avoid this issue

FYI: That approach is taken here: https://github.com/grongor/panicwatch

pennersr avatar Oct 24 '20 12:10 pennersr