Add a comment to the example that pidfile_* functions can handle pfh being NULL.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2012-02-08 08:49:30 +00:00
parent 7f8d054f8a
commit cc1ddd46b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231193

View File

@ -150,6 +150,11 @@ if (pfh == NULL) {
}
/* If we cannot create pidfile from other reasons, only warn. */
warn("Cannot open or create pidfile");
/*
* Eventhough pfh is NULL we can continue, as the other pidfile_*
* function can handle such situation by doing nothing except setting
* errno to EDOOFUS.
*/
}
if (daemon(0, 0) == -1) {