diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-23 01:58:24 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-23 01:58:24 +0800 |
commit | 3e47888f1f7a32ac83c3421375c31c3d4560d308 (patch) | |
tree | e225836f33d0a91e5d9845795597e2c54de0398f | |
parent | b102f5f44888896e44c8af86ec4bf759e2565d85 (diff) | |
download | pttbbs-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
-rw-r--r-- | cacheserver/utmpserver.c | 1 | ||||
-rw-r--r-- | cacheserver/utmpserver2.c | 1 |
2 files changed, 2 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': 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': |