Mercurial > trustbridge
changeset 384:638db75f0fdf
Ignore sigpipe if the child closed the channel or there is an error
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 15 Apr 2014 17:47:33 +0200 |
parents | 5eb7ee4ee819 |
children | 72487438a180 |
files | cinst/nssstore_linux.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cinst/nssstore_linux.c Tue Apr 15 17:47:07 2014 +0200 +++ b/cinst/nssstore_linux.c Tue Apr 15 17:47:33 2014 +0200 @@ -170,6 +170,11 @@ goto done; } + /* The NSS installer may exit on error before we are done + * telling it what to do. We want to handle that rather + * then die unexpectedly. */ + signal(SIGPIPE, SIG_IGN); + /* Send the instructions */ for (i = 0; to_install && to_install[i]; i++) {