summaryrefslogtreecommitdiff
path: root/net/spread/files/patch-spread.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-12-29 06:21:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-12-29 06:21:20 +0000
commit12f56a38a7178dc6335f27c4ce0a2d6336762ba2 (patch)
tree88dd7135fa5b41bfb4f596c8373ecc6a242577ab /net/spread/files/patch-spread.c
parent[New Port]:: www/drupal 4.3.1 Update & Fix plist (diff)
[MAINTAINER UPDATE] New versions of spread, spread-j and py-spreadmodule
* Use more bsd.port.mk convenience switches. * Use rc.subr properly for spread daemon. * Write a logfile rather than spewing to stdio. * Move rendezvous socket to /var/run. * Make Makefile.PL behave properly with PREFIX. PR: ports/60053 Submitted by: Joshua Goodall <joshua@roughtrade.net>
Notes
Notes: svn path=/head/; revision=96846
Diffstat (limited to 'net/spread/files/patch-spread.c')
-rw-r--r--net/spread/files/patch-spread.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/net/spread/files/patch-spread.c b/net/spread/files/patch-spread.c
index 1ab2708b1f90..0de2385206a1 100644
--- a/net/spread/files/patch-spread.c
+++ b/net/spread/files/patch-spread.c
@@ -1,6 +1,15 @@
---- spread.c Sun Nov 10 00:17:59 2002
-+++ spread.c Sun Nov 10 00:18:42 2002
-@@ -65,6 +65,7 @@
+--- spread.c Thu Jun 19 00:31:23 2003
++++ spread.c Mon Dec 8 20:55:41 2003
+@@ -48,6 +48,8 @@
+ #include <pwd.h>
+ #include <unistd.h>
+ #include <sys/types.h>
++#include <errno.h>
++#include <stdlib.h>
+ #endif
+
+ #ifdef ARCH_PC_WIN95
+@@ -65,6 +67,7 @@
static void Invalid_privilege_decrease(char *user, char *group);
static void Usage(int argc, char *argv[]);
@@ -8,16 +17,19 @@
/* auth-null.c: */
void null_init(void);
-@@ -144,6 +145,8 @@
+@@ -144,6 +147,11 @@
#endif /* ARCH_PC_WIN95 */
++ if (daemon(0,0) == -1)
++ Alarm( EXIT, "Spread: couldn't daemonise: %d", strerror(errno) );
++
+ writepidfile();
+
/* initialize each valid authentication protocol */
null_init();
ip_init();
-@@ -193,6 +196,20 @@
+@@ -193,6 +201,20 @@
E_handle_events();
return 0;