Ticket #1019: lighttpd-1.4.13-pidfile.patch
| File lighttpd-1.4.13-pidfile.patch, 0.9 kB (added by chris@…, 19 months ago) |
|---|
-
src/server.c
old new 1231 1231 srv_socket->fd = -1; 1232 1232 1233 1233 /* network_close() will cleanup after us */ 1234 1235 if (srv->srvconf.pid_file->used && 1236 srv->srvconf.changeroot->used == 0) { 1237 if (0 != unlink(srv->srvconf.pid_file->ptr)) { 1238 if (errno != EACCES && errno != EPERM) { 1239 log_error_write(srv, __FILE__, __LINE__, "sbds", 1240 "unlink failed for:", 1241 srv->srvconf.pid_file, 1242 errno, 1243 strerror(errno)); 1244 } 1245 } 1246 } 1234 1247 } 1235 1248 } 1236 1249 … … 1335 1348 } 1336 1349 1337 1350 if (srv->srvconf.pid_file->used && 1338 srv->srvconf.changeroot->used == 0) { 1351 srv->srvconf.changeroot->used == 0 && 1352 0 == graceful_shutdown) { 1339 1353 if (0 != unlink(srv->srvconf.pid_file->ptr)) { 1340 1354 if (errno != EACCES && errno != EPERM) { 1341 1355 log_error_write(srv, __FILE__, __LINE__, "sbds",

