1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/audio/rplay/files/patch-rplayd::rplayd.c
Norikatsu Shigemura f865228a08 o use daemon(3) instead of just fork(2) when daemonize.
o make rc.d script more modern, accordingly.
o Bump PORTREVISION.

PR:		ports/27875
Submitted by:	Takanori Saneto <sanewo@ba2.so-net.ne.jp>
2003-01-30 17:30:49 +00:00

17 lines
330 B
C

--- rplayd/rplayd.c.orig Wed Mar 10 16:58:04 1999
+++ rplayd/rplayd.c Fri Jan 31 02:12:40 2003
@@ -421,10 +421,9 @@
/* Fork */
if (do_fork)
{
- int pid = fork();
- if (pid != 0)
- {
- exit(0);
+ if (daemon(1, 1) < 0) {
+ report(REPORT_ERROR, "daemon: %s\n", sys_err_str(errno));
+ done(1);
}
}