From 365ada238f8c08dec8797583ce20b000ce41ec73 Mon Sep 17 00:00:00 2001 From: wens Date: Sun, 14 Jun 2009 07:51:56 +0000 Subject: revert previous commit of SIGPIPE handler git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4611 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/logind/logind.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'daemon') diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index e30dfa08..a816115f 100644 --- a/daemon/logind/logind.c +++ b/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) @@ -1053,12 +1053,6 @@ sighup_cb(int signal, short event, void *arg) g_reload_data = 1; } -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) { @@ -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) -- cgit v1.2.3