mirror of https://github.com/fairyglade/ly.git
Fix waitpid() being interrupted by SIGCHLD
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
59c07aa3ba
commit
51c5c3ee0b
|
|
@ -1541,7 +1541,7 @@ fn authenticate(ptr: *anyopaque) !bool {
|
|||
const tty_control_transfer_act = std.posix.Sigaction{
|
||||
.handler = .{ .handler = &ttyControlTransferSignalHandler },
|
||||
.mask = std.posix.sigemptyset(),
|
||||
.flags = 0,
|
||||
.flags = std.posix.SA.RESTART, // For waitpid()
|
||||
};
|
||||
std.posix.sigaction(std.posix.SIG.CHLD, &tty_control_transfer_act, null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue