Bug#31521: dpkg: dpkg dying in eterm
On Tue, 2 Mar 1999, Richard Braakman wrote:
> Manoj Srivastava wrote:
> > Please tell me how one disable sigpipe specifically for a
> > child process, [...]
>
> You fork, and then change the sigpipe setting before you exec.
Which excludes using system() - the only "ANSI C" way to spawn a
child AFAIK. One would expect system() to take care of setting
the child's handler to default, if there were something like an
implied guarantee that a program starts with default signal settings.
Yes, a program using system() could bracket all calls of system() with
set-signal-to-default / set-signal-to-ignore, but that temporarily
changes the parent's handler which may or not be acceptable.
Klaus
Reply to: