]> Dogcows Code - chaz/openbox/commitdiff
basename() returns a string sometimes.. go shaleh. but this makes it work both ways.
authorDana Jansens <danakj@orodu.net>
Thu, 15 Aug 2002 19:10:55 +0000 (19:10 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 15 Aug 2002 19:10:55 +0000 (19:10 +0000)
util/epist/epist.cc

index 410656d60b53a74775021cac7120ea5272ab9230..f83059435edc458c8cd7edaf4c675cf7c3e71064 100644 (file)
@@ -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:
This page took 0.021299 seconds and 4 git commands to generate.