From 3e47888f1f7a32ac83c3421375c31c3d4560d308 Mon Sep 17 00:00:00 2001 From: kcwu Date: Wed, 22 Mar 2006 17:58:24 +0000 Subject: utmpserver should ignore SIGPIPE, otherwise it will abort. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3295 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- cacheserver/utmpserver.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cacheserver/utmpserver.c') diff --git a/cacheserver/utmpserver.c b/cacheserver/utmpserver.c index 680a65d8..85adf8c3 100644 --- a/cacheserver/utmpserver.c +++ b/cacheserver/utmpserver.c @@ -151,6 +151,7 @@ int main(int argc, char **argv) int ch, port = 5120, sfd, cfd, len, index, uid; char *iface_ip = NULL; + Signal(SIGPIPE, SIG_IGN); while( (ch = getopt(argc, argv, "p:i:h")) != -1 ) switch( ch ){ case 'p': -- cgit v1.2.3