basename() returns a string sometimes.. go shaleh. but this makes it work both ways.
This commit is contained in:
parent
02d144a891
commit
41a38bbdaf
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ bool epist::handleSignal(int 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);
|
||||||
execvp(basename(_argv[0]), _argv);
|
string base(basename(_argv[0]));
|
||||||
|
execvp(base.c_str(), _argv);
|
||||||
return false; // this should be unreachable
|
return false; // this should be unreachable
|
||||||
|
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
|
|
Loading…
Reference in a new issue