proper scoping
This commit is contained in:
parent
41a38bbdaf
commit
3a6e590d50
1 changed files with 5 additions and 1 deletions
|
@ -109,12 +109,16 @@ void epist::activateGrabs() {
|
||||||
|
|
||||||
bool epist::handleSignal(int sig) {
|
bool epist::handleSignal(int sig) {
|
||||||
switch (sig) {
|
switch (sig) {
|
||||||
case SIGHUP:
|
case SIGHUP: {
|
||||||
cout << "epist: Restarting on request.\n";
|
cout << "epist: Restarting on request.\n";
|
||||||
|
|
||||||
execvp(_argv[0], _argv);
|
execvp(_argv[0], _argv);
|
||||||
|
|
||||||
string base(basename(_argv[0]));
|
string base(basename(_argv[0]));
|
||||||
execvp(base.c_str(), _argv);
|
execvp(base.c_str(), _argv);
|
||||||
|
|
||||||
return false; // this should be unreachable
|
return false; // this should be unreachable
|
||||||
|
}
|
||||||
|
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
|
|
Loading…
Reference in a new issue