diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-12-11 20:04:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-11 20:04:27 +0000 |
| commit | fd26fadc2c10f6d1a7e3ff601e5a303c3234a47b (patch) | |
| tree | 6110880cad53b51d99ec50243f1506991f08c28b /main.c | |
| parent | test: meson: add fontconfig to ‘test-config’ binary (fixes PGO builds) (diff) | |
| parent | config: NOINLINE modifiers_to_str() (diff) | |
Merge branch 'config-refactor-and-verify-binding-collisions-after-load'
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -556,8 +556,11 @@ main(int argc, char *const *argv) goto out; } - if (sigaction(SIGHUP, &(struct sigaction){.sa_handler = SIG_IGN}, NULL) < 0) { - LOG_ERRNO("failed to ignore SIGHUP"); + const struct sigaction sig_ign = {.sa_handler = SIG_IGN}; + if (sigaction(SIGHUP, &sig_ign, NULL) < 0 || + sigaction(SIGPIPE, &sig_ign, NULL) < 0) + { + LOG_ERRNO("failed to ignore SIGHUP+SIGPIPE"); goto out; } |
