master - cov: warn about failing sigaction
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1bb30a8c27ce73433748b49b5478e6ce2b7d4703 Commit: 1bb30a8c27ce73433748b49b5478e6ce2b7d4703 Parent: 5811fa33bbdb2065966489f334ba9fb1174369ca Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Oct 15 14:15:58 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Oct 15 14:24:28 2018 +0200
cov: warn about failing sigaction
--- tools/toollib.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
tools/toollib.c +2 -1
@@ -59,7 +59,8 @@ int become_daemon(struct cmd_context *cmd, int skip_lvm)log_verbose ("Forking background process from command: %s" , cmd->cmd_line); -sigaction (SIGCHLD , &act,NULL ); +if (sigaction (SIGCHLD , &act,NULL )) +log_warn ("WARNING: Failed to set SIGCHLD action." );if (!skip_lvm)if (!sync_local_dev_names (cmd)) {/* Flush ops and reset dm cookie */