# HG changeset patch # User Andre Heinecke # Date 1397576853 -7200 # Node ID 638db75f0fdf2dca051170b146ee156cf1c0d776 # Parent 5eb7ee4ee819a90e9d30be603e8e84417ab92ae1 Ignore sigpipe if the child closed the channel or there is an error diff -r 5eb7ee4ee819 -r 638db75f0fdf cinst/nssstore_linux.c --- 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++) {