From 41a38bbdaf245f12e58f2609092bfbcf8fba6f78 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 15 Aug 2002 19:10:55 +0000 Subject: [PATCH] basename() returns a string sometimes.. go shaleh. but this makes it work both ways. --- util/epist/epist.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/epist/epist.cc b/util/epist/epist.cc index 410656d6..f8305943 100644 --- 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: -- 2.45.2