Mercurial > trustbridge
diff cinst/nssstore_linux.c @ 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 | 17e1c8f37d72 |
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++) {