From 8df2459e40ab2ee726f4532c0699d4f7a40717d0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 28 Sep 2008 16:07:52 +0200 Subject: [PATCH] Add comment about SIGPIPE. --- ChangeLog | 5 +++++ lib/pipe.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a4204715c..c301503c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-09-28 Bruno Haible + * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about + SIGPIPE. + +2008-09-28 Bruno Haible + * tests/test-sigaction.c (handler, main): Disable the check whether SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on glibc systems with LinuxThreads. diff --git a/lib/pipe.h b/lib/pipe.h index b484775fe..d76e874f3 100644 --- a/lib/pipe.h +++ b/lib/pipe.h @@ -1,5 +1,5 @@ /* Creation of subprocesses, communicating via pipes. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -78,6 +78,8 @@ extern "C" { * write system read * parent -> fd[0] -> STDIN_FILENO -> child * + * Note: When writing to a child process, it is useful to ignore the SIGPIPE + * signal and the EPIPE error code. */ extern pid_t create_pipe_out (const char *progname, const char *prog_path, char **prog_argv, @@ -105,6 +107,8 @@ extern pid_t create_pipe_in (const char *progname, * parent <- fd[0] <- STDOUT_FILENO <- child * read system write * + * Note: When writing to a child process, it is useful to ignore the SIGPIPE + * signal and the EPIPE error code. */ extern pid_t create_pipe_bidi (const char *progname, const char *prog_path, char **prog_argv, -- 2.11.0