rpcbind.c (203710) | rpcbind.c (224001) |
---|---|
1/* $NetBSD: rpcbind.c,v 1.3 2002/11/08 00:16:40 fvdl Exp $ */ | 1/* $NetBSD: rpcbind.c,v 1.3 2002/11/08 00:16:40 fvdl Exp $ */ |
2/* $FreeBSD: head/usr.sbin/rpcbind/rpcbind.c 203710 2010-02-09 18:10:56Z imp $ */ | 2/* $FreeBSD: head/usr.sbin/rpcbind/rpcbind.c 224001 2011-07-14 07:28:49Z delphij $ */ |
3 4/* 5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 6 * unrestricted use provided that this legend is included on all tape 7 * media and as a part of the software program in whole or part. Users 8 * may copy or modify Sun RPC without charge, but are not authorized 9 * to license or distribute it to anyone else except as part of a product or 10 * program developed by the user. --- 162 unchanged lines hidden (view full) --- 173 exit(1); 174 } 175 176 rpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec); 177 178 init_transport(nconf); 179 180 while ((nconf = getnetconfig(nc_handle))) { | 3 4/* 5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 6 * unrestricted use provided that this legend is included on all tape 7 * media and as a part of the software program in whole or part. Users 8 * may copy or modify Sun RPC without charge, but are not authorized 9 * to license or distribute it to anyone else except as part of a product or 10 * program developed by the user. --- 162 unchanged lines hidden (view full) --- 173 exit(1); 174 } 175 176 rpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec); 177 178 init_transport(nconf); 179 180 while ((nconf = getnetconfig(nc_handle))) { |
181 if (nconf->nc_flag & NC_VISIBLE) | 181 if (nconf->nc_flag & NC_VISIBLE) { |
182 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, 183 "inet") == 0) { 184 /* DO NOTHING */ 185 } else 186 init_transport(nconf); | 182 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, 183 "inet") == 0) { 184 /* DO NOTHING */ 185 } else 186 init_transport(nconf); |
187 } |
|
187 } 188 endnetconfig(nc_handle); 189 190 /* catch the usual termination signals for graceful exit */ 191 (void) signal(SIGCHLD, reap); 192 (void) signal(SIGINT, terminate); 193 (void) signal(SIGTERM, terminate); 194 (void) signal(SIGQUIT, terminate); --- 566 unchanged lines hidden (view full) --- 761 syslog(LOG_ERR, 762 "rpcbind terminating on signal. Restart with \"rpcbind -w\""); 763 write_warmstart(); /* Dump yourself */ 764#endif 765 exit(2); 766} 767 768void | 188 } 189 endnetconfig(nc_handle); 190 191 /* catch the usual termination signals for graceful exit */ 192 (void) signal(SIGCHLD, reap); 193 (void) signal(SIGINT, terminate); 194 (void) signal(SIGTERM, terminate); 195 (void) signal(SIGQUIT, terminate); --- 566 unchanged lines hidden (view full) --- 762 syslog(LOG_ERR, 763 "rpcbind terminating on signal. Restart with \"rpcbind -w\""); 764 write_warmstart(); /* Dump yourself */ 765#endif 766 exit(2); 767} 768 769void |
769rpcbind_abort() | 770rpcbind_abort(void) |
770{ 771#ifdef WARMSTART 772 write_warmstart(); /* Dump yourself */ 773#endif 774 abort(); 775} 776 777/* get command line options */ --- 78 unchanged lines hidden --- | 771{ 772#ifdef WARMSTART 773 write_warmstart(); /* Dump yourself */ 774#endif 775 abort(); 776} 777 778/* get command line options */ --- 78 unchanged lines hidden --- |