summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-14 15:51:56 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-14 15:51:56 +0800
commit1e5d877332c15c5850e5f79b003cc8f1efea2e5d (patch)
tree01ea8d311c5f275113e4d6a9b7e926d98c83fb67
parenta750dbe33eadc43c8d2c2e2a5d8a4f30ac41d7b2 (diff)
downloadpttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.tar
pttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.tar.gz
pttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.tar.bz2
pttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.tar.lz
pttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.tar.xz
pttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.tar.zst
pttbbs-1e5d877332c15c5850e5f79b003cc8f1efea2e5d.zip
revert previous commit of SIGPIPE handler
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4611 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/daemon/logind/logind.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/pttbbs/daemon/logind/logind.c b/pttbbs/daemon/logind/logind.c
index e30dfa08..a816115f 100644
--- a/pttbbs/daemon/logind/logind.c
+++ b/pttbbs/daemon/logind/logind.c
@@ -1042,7 +1042,7 @@ auth_start(int fd, login_conn_ctx *conn)
///////////////////////////////////////////////////////////////////////
// Event callbacks
-static struct event ev_sighup, ev_sigpipe, ev_tunnel;
+static struct event ev_sighup, ev_tunnel;
static void
sighup_cb(int signal, short event, void *arg)
@@ -1054,12 +1054,6 @@ sighup_cb(int signal, short event, void *arg)
}
static void
-sigpipe_cb(int signal, short event, void *arg)
-{
- fprintf(stderr, LOG_PREFIX "caught sigpipe...\r\n");
-}
-
-static void
endconn_cb(int fd, short event, void *arg)
{
login_conn_ctx *conn = (login_conn_ctx*) arg;
@@ -1578,8 +1572,6 @@ main(int argc, char *argv[])
// SIGHUP handler is reset in daemonize()
signal_set(&ev_sighup, SIGHUP, sighup_cb, &ev_sighup);
signal_add(&ev_sighup, NULL);
- signal_set(&ev_sigpipe, SIGPIPE, sigpipe_cb, &ev_sigpipe);
- signal_add(&ev_sigpipe, NULL);
// spawn tunnel client if specified.
if (*tclient_cmd)