projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d144a
)
basename() returns a string sometimes.. go shaleh. but this makes it work both ways.
author
Dana Jansens
<danakj@orodu.net>
Thu, 15 Aug 2002 19:10:55 +0000
(19:10 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 15 Aug 2002 19:10:55 +0000
(19:10 +0000)
util/epist/epist.cc
patch
|
blob
|
history
diff --git
a/util/epist/epist.cc
b/util/epist/epist.cc
index
410656d
..
f830594
100644
(file)
--- a/
util/epist/epist.cc
+++ b/
util/epist/epist.cc
@@
-112,7
+112,8
@@
bool epist::handleSignal(int sig) {
case SIGHUP:
cout << "epist: Restarting on request.\n";
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
case SIGTERM: