X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=signal.c;h=3bbe87d84a810afcb21f11de65b48caf80c622ac;hp=03926a47f23e29e40a3a8bf6dccccd5b460b96c0;hb=17eea857c175123d68e7dffc28134befa4c0aa5f;hpb=a0b87ba0529cc6ab075e1d7a11f8b4adc47948eb diff --git a/signal.c b/signal.c index 03926a4..3bbe87d 100644 --- a/signal.c +++ b/signal.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2008 Andre Noll + * Copyright (C) 2004-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -16,6 +16,7 @@ #include #include #include +#include #include "gcc-compat.h" @@ -120,7 +121,6 @@ int install_sighandler(int sig) DSS_DEBUG_LOG("catching signal %d\n", sig); if (signal(sig, &generic_signal_handler) != SIG_ERR) return 1; - make_err_msg("signal %d", sig); return -E_SIGNAL_SIG_ERR; } @@ -147,7 +147,7 @@ int next_signal(void) assert(r < 0); if (err == EAGAIN) return 0; - make_err_msg("failed to read from signal pipe"); + DSS_ERROR_LOG("failed to read from signal pipe\n"); return -ERRNO_TO_DSS_ERROR(err); }