X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=signal.c;h=8dc93a636c0389b5937c7dcecf89705608f78838;hb=c4653d0f3496d0b8b21da774c1f8312c20e3f25f;hp=03926a47f23e29e40a3a8bf6dccccd5b460b96c0;hpb=a0b87ba0529cc6ab075e1d7a11f8b4adc47948eb;p=dss.git diff --git a/signal.c b/signal.c index 03926a4..8dc93a6 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" @@ -69,7 +70,6 @@ err_out: static void generic_signal_handler(int s) { write(signal_pipe[1], &s, sizeof(int)); - //fprintf(stderr, "got sig %i\n", s); } /** @@ -120,7 +120,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 +146,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); }