current miscutil.c,1.84,1.85
Fabian Keil via ijbswa-commits <[email protected]> Thu, 08 Jun 2017 13:11:10 +0000
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv606
Modified Files:
miscutil.c
Log Message:
Let write_pid_file() terminate if the pid file can't be opened
Logging the issue at info level is unlikely to help.
Index: miscutil.c
===================================================================
RCS file: /cvsroot/ijbswa/current/miscutil.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** miscutil.c 29 May 2017 10:05:46 -0000 1.84
--- miscutil.c 8 Jun 2017 13:11:08 -0000 1.85
***************
*** 218,222 ****
* Function : write_pid_file
*
! * Description : Writes a pid file with the pid of the main process
*
* Parameters : None
--- 218,223 ----
* Function : write_pid_file
*
! * Description : Writes a pid file with the pid of the main process.
! * Exits if the file can't be opened
*
* Parameters : None
***************
*** 237,241 ****
if ((fp = fopen(pidfile, "w")) == NULL)
{
! log_error(LOG_LEVEL_INFO, "can't open pidfile '%s': %E", pidfile);
}
else
--- 238,242 ----
if ((fp = fopen(pidfile, "w")) == NULL)
{
! log_error(LOG_LEVEL_FATAL, "can't open pidfile '%s': %E", pidfile);
}
else
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot