Fix off-by-one error in launch_other_browser
[browser-switch] / main.c
diff --git a/main.c b/main.c
index 9033117..73ca570 100644 (file)
--- a/main.c
+++ b/main.c
@@ -169,6 +169,7 @@ int main() {
        if (ctx.continuous_mode) {
                struct sigaction act;
                act.sa_flags = SA_RESTART;
+               sigemptyset(&(act.sa_mask));
 
                act.sa_handler = waitforzombies;
                if (sigaction(SIGCHLD, &act, NULL) == -1) {