Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/nfs/nfsservice Make sure we are not executed in non...
details: https://anonhg.NetBSD.org/src/rev/4383db68bff6
branches: trunk
changeset: 756676:4383db68bff6
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jul 28 15:12:17 2010 +0000
description:
Make sure we are not executed in non-debug mode (which forks).
diffstat:
tests/fs/nfs/nfsservice/nfsd.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 48afa19da741 -r 4383db68bff6 tests/fs/nfs/nfsservice/nfsd.c
--- a/tests/fs/nfs/nfsservice/nfsd.c Wed Jul 28 15:11:30 2010 +0000
+++ b/tests/fs/nfs/nfsservice/nfsd.c Wed Jul 28 15:12:17 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsd.c,v 1.2 2010/07/27 14:04:47 macallan Exp $ */
+/* $NetBSD: nfsd.c,v 1.3 2010/07/28 15:12:17 pooka Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else
-__RCSID("$NetBSD: nfsd.c,v 1.2 2010/07/27 14:04:47 macallan Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.3 2010/07/28 15:12:17 pooka Exp $");
#endif
#endif /* not lint */
@@ -220,11 +220,16 @@
udpflag = 1;
if (debug == 0) {
+ fprintf(stderr, "non-debug not supported here\n");
+ exit(1);
+
+#ifdef not_the_debug_man
daemon(0, 0);
(void)signal(SIGHUP, SIG_IGN);
(void)signal(SIGINT, SIG_IGN);
(void)signal(SIGQUIT, SIG_IGN);
(void)signal(SIGSYS, nonfs);
+#endif
}
if (udpflag) {
Home |
Main Index |
Thread Index |
Old Index