From: Dana Jansens Date: Thu, 15 Aug 2002 19:12:28 +0000 (+0000) Subject: proper scoping X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=3a6e590d5018a70edbff3e17128788b47376891e;p=chaz%2Fopenbox proper scoping --- 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: