Fix SIGHUP restarting bug: sendmail can't find itself, it uses argv[0]
but don't uses PATH
This commit is contained in:
parent
f2a63f08b6
commit
9072414990
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user