summaryrefslogtreecommitdiffstats
path: root/cacheserver/utmpserver.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-03-23 01:58:24 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-03-23 01:58:24 +0800
commit3e47888f1f7a32ac83c3421375c31c3d4560d308 (patch)
treee225836f33d0a91e5d9845795597e2c54de0398f /cacheserver/utmpserver.c
parentb102f5f44888896e44c8af86ec4bf759e2565d85 (diff)
downloadpttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.tar
pttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.tar.gz
pttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.tar.bz2
pttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.tar.lz
pttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.tar.xz
pttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.tar.zst
pttbbs-3e47888f1f7a32ac83c3421375c31c3d4560d308.zip
utmpserver should ignore SIGPIPE, otherwise it will abort.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3295 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver/utmpserver.c')
-rw-r--r--cacheserver/utmpserver.c1
1 files changed, 1 insertions, 0 deletions
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':