diff options
author | bouyer <bouyer> | 2006-05-31 17:47:45 +0000 |
---|---|---|
committer | bouyer <bouyer> | 2006-05-31 17:47:45 +0000 |
commit | b4e719c2f85d4b8e3fa9ff8887dc3992379d37df (patch) | |
tree | 00f3bbf88c7f269c92deb6095a0b979743a10f2e /net/openvmps/patches | |
parent | b21557117e6844e3cb8a3b807f78414b2e224e78 (diff) | |
download | pkgsrc-b4e719c2f85d4b8e3fa9ff8887dc3992379d37df.tar.gz |
On NetBSD use daemon() instead of the custom code here which forgets to
close std*. Now it's possible to properly restart the daemon from a
rsh/ssh command. Bump pkgrevision.
Diffstat (limited to 'net/openvmps/patches')
-rw-r--r-- | net/openvmps/patches/patch-aa | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/net/openvmps/patches/patch-aa b/net/openvmps/patches/patch-aa index a5ca083113a..109be04cfae 100644 --- a/net/openvmps/patches/patch-aa +++ b/net/openvmps/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.2 2006/03/14 01:32:00 joerg Exp $ +$NetBSD: patch-aa,v 1.3 2006/05/31 17:47:45 bouyer Exp $ ---- daemon.c.orig 2004-07-24 00:46:49.000000000 +0000 -+++ daemon.c +--- daemon.c.orig 2004-07-24 02:46:49.000000000 +0200 ++++ daemon.c 2006-05-30 23:12:09.000000000 +0200 @@ -14,8 +14,6 @@ #define VMPS_CHECK_BSD #endif @@ -11,13 +11,27 @@ $NetBSD: patch-aa,v 1.2 2006/03/14 01:32:00 joerg Exp $ #ifdef VMPS_CHECK_BSD #include <sys/file.h> #include <sys/ioctl.h> -@@ -44,6 +42,9 @@ daemon_start(ignsigcld) +@@ -44,6 +42,15 @@ { register int childpid; ++#ifdef __NetBSD__ ++ if (daemon(0,0)) { ++ fprintf(stderr, "%s: can't daemon(): %s\n", ++ getprogname(), strerror(errno)); ++ } ++#else /* !__NetBSD__ */ +#ifdef VMPS_CHECK_BSD + int fd; +#endif #ifdef SIGTTOU signal(SIGTTOU, SIG_IGN); +@@ -91,6 +98,7 @@ + if ( childpid > 0 ) exit(0); + + #endif ++#endif /* !NetBSD */ + + errno = 0; + umask(0); |