diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-10 20:28:30 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-10 20:28:30 +0100 |
commit | 441aa3044f43e5572f58c354f01e6bc070acd5c7 (patch) | |
tree | bef236e8058dd3469da28ffcd5a6a287222a4c50 /lib/sigpipe-die.c | |
parent | 039ae97b8ae35a2446c5d62d72b21689c97da7e2 (diff) | |
download | gnulib-441aa3044f43e5572f58c354f01e6bc070acd5c7.tar.gz |
Use spaces for indentation, not tabs.
Diffstat (limited to 'lib/sigpipe-die.c')
-rw-r--r-- | lib/sigpipe-die.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sigpipe-die.c b/lib/sigpipe-die.c index bb3c8b00e6..4790b9471a 100644 --- a/lib/sigpipe-die.c +++ b/lib/sigpipe-die.c @@ -34,7 +34,7 @@ void sigpipe_die (void) { error (exit_failure, 0, "%s", - _("error writing to a closed pipe or socket")); + _("error writing to a closed pipe or socket")); /* Ensure that this function really does not return. */ abort (); @@ -68,15 +68,15 @@ install_sigpipe_die_handler (void (*prepare_die) (void)) sigemptyset (&action.sa_mask); if (sigaction (SIGPIPE, &action, NULL) >= 0) { - /* Unblock the signal (just in case). This is needed because if the - signal was blocked in the parent process, it is also blocked in - this process: the mask of blocked signals is inherited across - fork/exec (except for SIGCHLD). */ - sigset_t sigpipe_set; - - sigemptyset (&sigpipe_set); - sigaddset (&sigpipe_set, SIGPIPE); - sigprocmask (SIG_UNBLOCK, &sigpipe_set, NULL); + /* Unblock the signal (just in case). This is needed because if the + signal was blocked in the parent process, it is also blocked in + this process: the mask of blocked signals is inherited across + fork/exec (except for SIGCHLD). */ + sigset_t sigpipe_set; + + sigemptyset (&sigpipe_set); + sigaddset (&sigpipe_set, SIGPIPE); + sigprocmask (SIG_UNBLOCK, &sigpipe_set, NULL); } } } |