Re: [pacman-dev] [PATCH 1/2] sighandler: block signals while handling SIGSEGV

2019-08-05 Thread Allan McRae
On 8/6/19 2:12 pm, Andrew Gregory wrote: > If we get SIGSEGV we need to bail out quickly, leaving other signals > unblocked could lead to other signal handlers getting triggered. > > Signed-off-by: Andrew Gregory > --- > > Signals are hard. I'd appreciate if somebody could double check my >

[pacman-dev] [PATCH 1/2] sighandler: block signals while handling SIGSEGV

2019-06-07 Thread Andrew Gregory
If we get SIGSEGV we need to bail out quickly, leaving other signals unblocked could lead to other signal handlers getting triggered. Signed-off-by: Andrew Gregory --- Signals are hard. I'd appreciate if somebody could double check my math on these patches. src/pacman/sighandler.c | 2 +- 1