1 commit eb36cf198795b09c1ba796044fc99fa40c5a2b33
2 Author: Steve Dickson <steved@redhat.com>
3 Date: Tue Jul 13 15:52:18 2010 -0400
5 rpcbind: add no-fork mode
7 Signed-off-by: Lennart Poettering <lennart@poettering.net>
8 Signed-off-by: Steve Dickson <steved@redhat.com>
10 diff --git a/man/rpcbind.8 b/man/rpcbind.8
11 index 32806d4..c5b8fb7 100644
14 @@ -82,6 +82,8 @@ during operation, and will abort on certain errors if
16 With this option, the name-to-address translation consistency
17 checks are shown in detail.
19 +Do not fork and become a background process.
21 Specify specific IP addresses to bind to for UDP requests.
23 diff --git a/src/rpcbind.c b/src/rpcbind.c
24 index c8f0d9f..63023e1 100644
29 int debugging = 0; /* Tell me what's going on */
30 int doabort = 0; /* When debugging, do an abort on errors */
31 +int dofork = 1; /* fork? */
33 rpcblist_ptr list_rbl; /* A list of version 3/4 rpcbind services */
35 @@ -213,8 +214,8 @@ main(int argc, char *argv[])
41 + } else if (dofork) {
43 err(1, "fork failed");
46 @@ -740,7 +741,7 @@ parseargs(int argc, char *argv[])
50 - while ((c = getopt(argc, argv, "adh:ilsw")) != -1) {
51 + while ((c = getopt(argc, argv, "adh:ilswf")) != -1) {
54 doabort = 1; /* when debugging, do an abort on */
55 @@ -767,13 +768,16 @@ parseargs(int argc, char *argv[])
68 - fprintf(stderr, "usage: rpcbind [-adhilsw]\n");
69 + fprintf(stderr, "usage: rpcbind [-adhilswf]\n");