Skip to contentSkip to conversation

nfs-utils - 6 of 6 - mountd - ignore sigpipe

PATCH New Steve Dickson 1 participant 1 message Jun 18, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs-utils - 6 of 6 - mountd - ignore sigpipe

This patch makes mountd ignore SIGPIPE. If forget exactly how a SIGPIPE can be generated, but was being generated which in turn was kill mountd...

SteveD.

utils/mountd/mountd.c renamed from utils/mountd/mountd.c.orig +1 -0
@@ -481,6 +481,7 @@ main(int argc, char **argv)
 	sigaction(SIGHUP, &sa, NULL);
 	sigaction(SIGINT, &sa, NULL);
 	sigaction(SIGTERM, &sa, NULL);
+	sigaction(SIGPIPE, &sa, NULL);
 	/* WARNING: the following works on Linux and SysV, but not BSD! */
 	sigaction(SIGCHLD, &sa, NULL);