From 2dc29f58476b10b1f92e73eddc6c6cb45b645887 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 25 Jan 2007 15:47:15 +0000 Subject: Ignore SIGCHLD and SIGPIPE --- daemon/echo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/echo.c b/daemon/echo.c index f49387a5..d482ce6d 100644 --- a/daemon/echo.c +++ b/daemon/echo.c @@ -178,6 +178,8 @@ static GIOChannel *setup_rfcomm(DBusConnection *conn, uint8_t channel) g_io_add_watch(io, G_IO_IN, connect_event, conn); + g_io_channel_unref(io); + return io; } @@ -295,6 +297,10 @@ int main(int argc, char *argv[]) sa.sa_handler = sig_hup; sigaction(SIGHUP, &sa, NULL); + sa.sa_handler = SIG_IGN; + sigaction(SIGCHLD, &sa, NULL); + sigaction(SIGPIPE, &sa, NULL); + main_loop = g_main_loop_new(NULL, FALSE); system_bus = init_dbus(NULL, NULL, NULL); -- cgit