Any string that can be copy & pasted into a terminal, for example,
needs to correctly use minus signs (escaped dashes), instead of the
default hyphen.
If successful,
.Fn flopen
returns a valid file descriptor.
-Otherwise, it returns -1, and sets
+Otherwise, it returns \-1, and sets
.Va errno
as described in
.Xr flock 2
warn("Cannot open or create pidfile");
}
-if (daemon(0, 0) == -1) {
+if (daemon(0, 0) == \-1) {
warn("Cannot daemonize");
pidfile_remove(pfh);
exit(EXIT_FAILURE);
/* Do work. */
childpid = fork();
switch (childpid) {
- case -1:
+ case \-1:
syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno));
break;
case 0: