diff options
author | pjd <pjd@FreeBSD.org> | 2012-02-08 08:49:30 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-02-08 08:49:30 +0000 |
commit | 62f39c08bc71631953399bbc9285503a4f0060d1 (patch) | |
tree | 64d97ce7d2f3376f08f988c05124321ad4272995 /lib/libutil | |
parent | b87f041277fe73b38d32a446dd6b6d32a7fef443 (diff) | |
download | FreeBSD-src-62f39c08bc71631953399bbc9285503a4f0060d1.zip FreeBSD-src-62f39c08bc71631953399bbc9285503a4f0060d1.tar.gz |
Add a comment to the example that pidfile_* functions can handle pfh being NULL.
MFC after: 3 days
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/pidfile.3 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3 index 8b604cb..30c880c 100644 --- a/lib/libutil/pidfile.3 +++ b/lib/libutil/pidfile.3 @@ -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) { |