do not fail hard if pid file is not writeable in inetd mode
This commit is contained in:
parent
14cf90774a
commit
0e87ba32bb
|
|
@ -1,6 +1,8 @@
|
||||||
Version NEXT
|
Version NEXT
|
||||||
display port number if we can't listen on it
|
display port number if we can't listen on it
|
||||||
minor whitespace cleanup
|
minor whitespace cleanup
|
||||||
|
do not fail hard if we can't write to pid file and running from
|
||||||
|
inetd
|
||||||
|
|
||||||
Version 2.8.1b29 - 24 Aug 2019
|
Version 2.8.1b29 - 24 Aug 2019
|
||||||
added scons command line argument without-fspscan=yes for building
|
added scons command line argument without-fspscan=yes for building
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ int main (int argc, char ** argv)
|
||||||
new pid to it after we setuid()+fork()
|
new pid to it after we setuid()+fork()
|
||||||
*/
|
*/
|
||||||
#ifndef LAMERPACK
|
#ifndef LAMERPACK
|
||||||
if (pidfile(pidlogname)) {
|
if (! inetd_mode && pidfile(pidlogname)) {
|
||||||
fprintf(stderr,"Error: can not write pidfile %s - exiting.\n",pidlogname);
|
fprintf(stderr,"Error: can not write pidfile %s - exiting.\n",pidlogname);
|
||||||
exit(8);/* cannot write pid file - exit */
|
exit(8);/* cannot write pid file - exit */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user