Fix SIGHUP restarting bug: sendmail can't find itself, it uses argv[0]

but don't uses PATH
This commit is contained in:
ache 1995-12-09 06:32:24 +00:00
parent f2a63f08b6
commit 9072414990

View File

@ -1693,7 +1693,7 @@ sighup()
syslog(LOG_INFO, "restarting %s on signal", SaveArgv[0]);
#endif
releasesignal(SIGHUP);
execv(SaveArgv[0], (ARGV_T) SaveArgv);
execvp(SaveArgv[0], (ARGV_T) SaveArgv);
#ifdef LOG
if (LogLevel > 0)
syslog(LOG_ALERT, "could not exec %s: %m", SaveArgv[0]);