Package: fakeroot
Version: 1.30.1-1.1

The faked daemon installs signal handlers by looping from 1 to NSIG 
(faked.c:1481) with some special handling for some signals. However, for most 
signals the `cleanup` function is registered as handler.

Specifically, with the SIGWINCH signal this can lead to unexpected exiting of 
faked. To reproduce this, start the daemon as follows and resize the terminal 
window:

# faked-sysv --foreground --debug
using 1983184094 as msg key
msg_key=1983184094
1983184094:95
FAKEROOT: msg=2, key=1983184094
fakeroot: clearing up message queues and semaphores, signal=28

The expected behavior is that the faked daemon does not exit on SIGWINCH (28). 
Maybe there are also other signals that should be ignored by default. Note that 
this issue has been previously discovered 
(https://github.com/moby/moby/issues/27195) but apparently has not been 
reported here.

Reply via email to