Home | History | Annotate | Download | only in rpc.statd
History log of /src/usr.sbin/rpc.statd/statd.c
RevisionDateAuthorComments
 1.34  02-Dec-2019  christos drop my name from the advertising clause.
 1.33  15-Aug-2019  kamil Stop defining _rpcsvcdirty in bss and data

_rpcsvcdirty is already defined in the generated code from rpcgen(1).

Detected during the build with Address Sanitizer (MKSANITIZER).
 1.32  23-Jan-2018  sevan branches: 1.32.4; 1.32.6;
ansify - drop the K&R style prototypes & implementations.
 1.31  03-Jun-2017  christos remove my copyright.
 1.30  21-Aug-2015  christos fix bogus %m
use EXIT_FAILURE
 1.29  18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.28  15-Dec-2007  perry branches: 1.28.12;
convert __attribute__s to applicable cdefs.h macros
 1.27  28-Mar-2006  tron branches: 1.27.10;
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.

Reviewed by christos@.
 1.26  17-Mar-2006  elad Overrun found by Coverity, CID 1549.
 1.25  27-Nov-2005  bouyer We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.24  20-Oct-2005  christos PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
 1.23  14-Jan-2004  yamt branches: 1.23.2; 1.23.4; 1.23.6; 1.23.8;
init_file: copy status_info from static storage so that
statd doesn't always use the same "status" number.
 1.22  14-Jan-2004  yamt reset_host: reset actual host infos rather than reset copies of them.
 1.21  08-Nov-2002  fvdl Use a non-blocking SVC for TCP connections.
 1.20  23-Nov-2001  christos branches: 1.20.2;
Use SA_NOCLDWAIT to avoid zombies.
 1.19  22-Nov-2001  tron Add a handler for SIGCHLD which collects dead childs via wait3(2) so that
"rpc.statd" won't leave zombies arround.
 1.18  19-Feb-2001  cgd convert to use getprogname()
 1.17  09-Jun-2000  fvdl branches: 1.17.2;
Convert to tirpc interface, and to be af-independent.
 1.16  09-Jun-2000  bouyer Always copy pointer returned by db->get or db->seq before using, to avoid
alignements issues.
While doing this I found a bug in reset_host(), notifyReqd was set to
the wrong pointer.
 1.15  06-Jun-2000  bouyer db->seq() returns 0 for success and 1 for failure, not the opposite.
walk_db() was silently failing because of this.
 1.14  10-Jun-1999  scottr branches: 1.14.6;
Tweak the usage output a bit, and exit after printing it.
 1.13  06-Jun-1999  thorpej Use pidfile(3).
 1.12  06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.11  22-Jun-1998  tron Fix broken call to dbopen(), fixes PR bin/5637 by Azuma Okamoto.
 1.10  25-Oct-1997  thorpej To print a size_t, cast to u_long and use %lu printf format so that
this works on the Alpha.
 1.9  21-Oct-1997  christos Use a db(3) hash database instead of shared memory. Don't fork() to service
requests in the database when restarting.
 1.8  21-Oct-1997  is Only map 16MBytes of file, enough for some 16000 hosts on the LAN.
Stopgap fix for PR 4225 by Matthias Scheler (rpc.statd doesn't run on m68k).

XXX This should be done in a different way. XXX

Matthias proposes to use a PMAP capable of mapping more than 256 MB
per user process (You can do this by changing your vm_param constants
even now).

However, statd could use saner data structure to save on address space
easily. E.g., most host names will be much smaller than the allocated
1024(+1 for trailing zero) bytes. Using variable length names would
allow, depending on environment, a factor of 30 more hosts per address
space.

Btw, if anybody really needs more than 16k hosts handled by statd, the
data structure is unsuable anyway; currently, the array of entries is
linearly searched. Something like a DB_BTREE should be used.
 1.7  18-Oct-1997  drochner branches: 1.7.2;
The third argument to msync() got lost - bring it back.
 1.6  17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.5  17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.4  17-Oct-1997  lukem call msync() correctly
 1.3  16-Oct-1997  christos msync needs a third argument.
 1.2  17-May-1997  christos eliminate struct sigcontext
 1.1  10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
 1.7.2.1  21-Oct-1997  thorpej Pull up from trunk: Make this work on systems that don't have huge
gobs of user address space (e.g. amiga).
 1.14.6.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.17.2.1  09-Dec-2001  he Pull up revision 1.19 (requested by tron):
Add a handler for SIGCHLD which collects dead children, so that
rpc.statd won't leave zombies around.
 1.20.2.6  28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #6037):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.20.2.5  14-Dec-2005  jmc Pullup rev 1.25 (requested by bouyer in ticket #5970)

We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.20.2.4  14-Dec-2005  jmc Pullup rev 1.24 (requested by bouyer in ticket #5959)

rpc.statd doesn't save failed notifies in the database. PR#31502
 1.20.2.3  06-Apr-2004  grant Pull up revision 1.23 (requested by bouyer in ticket #1657):

init_file: copy status_info from static storage so that
statd doesn't always use the same "status" number.
 1.20.2.2  06-Apr-2004  grant Pull up revision 1.22 (requested by bouyer in ticket #1656):

reset_host: reset actual host infos rather than reset copies of them.
 1.20.2.1  06-Jan-2003  jmc Pull up revisions 1.20-1.21 (requested by fvdl in ticket #1037)
Use a non-blocking SVC for TCP connections.
 1.23.8.1  28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #10400):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.6.3  29-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #1228):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.6.2  27-Nov-2005  riz branches: 1.23.6.2.2;
Pull up following revision(s) (requested by bouyer in ticket #1007):
usr.sbin/rpc.statd/statd.c: revision 1.25
We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.23.6.1  22-Oct-2005  riz Pull up following revision(s) (requested by christos in ticket #905):
usr.sbin/rpc.statd/statd.c: revision 1.24
PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
 1.23.6.2.2.1  29-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #1228):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.4.3  28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #10400):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.4.2  14-Dec-2005  jmc Pullup rev 1.25 (requested by bouyer in ticket #10171)

We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.23.4.1  28-Oct-2005  jmc "Pullup rev 1.24 (requested by christos in ticket #5934)
rpc.statd doesn't save failed notifies in the database. PR#31502"
 1.23.2.1  28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #10400):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.27.10.1  09-Jan-2008  matt sync with HEAD
 1.28.12.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.32.6.1  16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #70):

usr.sbin/rpc.statd/statd.c: revision 1.33
usr.sbin/rpc.lockd/lockd.c: revision 1.13
usr.sbin/rpc.bootparamd/bootparamd.c: revision 1.47

Stop defining _rpcsvcdirty in bss and data

_rpcsvcdirty is already defined in the generated code from rpcgen(1).

Detected during the build with Address Sanitizer (MKSANITIZER).
 1.32.4.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.32.4.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed