comparison 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
comparison
equal deleted inserted replaced
383:5eb7ee4ee819 384:638db75f0fdf
168 { 168 {
169 ERRORPRINTF ("Failed to open pipe for writing\n"); 169 ERRORPRINTF ("Failed to open pipe for writing\n");
170 goto done; 170 goto done;
171 } 171 }
172 172
173 /* The NSS installer may exit on error before we are done
174 * telling it what to do. We want to handle that rather
175 * then die unexpectedly. */
176 signal(SIGPIPE, SIG_IGN);
177
173 /* Send the instructions */ 178 /* Send the instructions */
174 for (i = 0; to_install && to_install[i]; i++) 179 for (i = 0; to_install && to_install[i]; i++)
175 { 180 {
176 if (fprintf (stream, "I:%s\n", to_install[i]) <= 3) 181 if (fprintf (stream, "I:%s\n", to_install[i]) <= 3)
177 { 182 {

http://wald.intevation.org/projects/trustbridge/