mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix SIGHUP restarting bug: sendmail can't find itself, it uses argv[0]
but don't uses PATH
This commit is contained in:
parent
de8c2644e5
commit
36f8da038f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12688
|
@ -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 a new issue