Net-Server - Zero-Length PID File

Posted on Tue Sep 2 23:25:59 2008 by kjpires
Zero-Length PID File

In Net::Server::Daemonize, create_pid_file can create a zero-length pid file (if it is aborted while starting up or if the file system is full) that check_pid_file dies on.

I would suggest:
1) make create_pid_file shuffle in (i.e. rename) its pid file after it closes it,
2) make check_pid_file ignore empty pid files, or
3) both.

[The changes are pretty simple, but if you want code, I can provide either or both fixes.]

Kurt

Write a response