X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmetaproxy_prog.cpp;h=481901bb6e15cba207f66951f264f7a98b919ace;hb=56a046379458e5aa06881cc146b951d5b0711b85;hp=083ea29812f67a36dd240fc42105a6a0c27a1e15;hpb=9838c2eadf06b6bfe3d6eb264c1b485b51ba1a06;p=metaproxy-moved-to-github.git diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 083ea29..481901b 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2013 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -58,19 +58,20 @@ static void set_log_prefix(void) #if HAVE_UNISTD_H static pid_t process_group = 0; +static int sig_received = 0; static void sig_usr1_handler(int signo) { - yaz_log(YLOG_LOG, "metaproxy received SIGUSR1"); + sig_received = signo; if (routerp) routerp->stop(signo); } static void sig_term_handler(int signo) { + sig_received = signo; if (routerp) { - yaz_log(YLOG_LOG, "metaproxy received SIGTERM"); routerp->stop(signo); } }