From 3a6e590d5018a70edbff3e17128788b47376891e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 15 Aug 2002 19:12:28 +0000 Subject: [PATCH] proper scoping --- util/epist/epist.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/epist/epist.cc b/util/epist/epist.cc index f8305943..a0b1666a 100644 --- a/util/epist/epist.cc +++ b/util/epist/epist.cc @@ -109,12 +109,16 @@ void epist::activateGrabs() { bool epist::handleSignal(int sig) { switch (sig) { - case SIGHUP: + case SIGHUP: { cout << "epist: Restarting on request.\n"; + execvp(_argv[0], _argv); + string base(basename(_argv[0])); execvp(base.c_str(), _argv); + return false; // this should be unreachable + } case SIGTERM: case SIGINT: -- 2.45.2