summaryrefslogtreecommitdiffstats
path: root/cacheserver/utmpserver2.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/utmpserver2.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/utmpserver2.c')
-rw-r--r--cacheserver/utmpserver2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cacheserver/utmpserver2.c b/cacheserver/utmpserver2.c
index 2f231a94..96ac7304 100644
--- a/cacheserver/utmpserver2.c
+++ b/cacheserver/utmpserver2.c
@@ -149,6 +149,7 @@ int main(int argc, char *argv[])
}
#endif
+ Signal(SIGPIPE, SIG_IGN);
while( (ch = getopt(argc, argv, "p:i:h")) != -1 )
switch( ch ){
case 'p':