Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-4-0] src/sys



Module Name:    src
Committed By:   snj
Date:           Fri Apr 10 20:35:24 UTC 2009

Modified Files:
        src/sys/kern [netbsd-4-0]: uipc_usrreq.c
        src/sys/sys [netbsd-4-0]: file.h

Log Message:
Apply patch (requested by mlelstv in ticket #1303):
Avoid deep recursion and file descriptor exhaustion.
1. unp_detach: go not call unp_gc directly for descriptors
  that are unixdomain sockets themselves. Instead mark them
  for cleanup during garbage collection.
2. unp_gc: handle detach of descriptors that were marked earlier.
3. prohibit transfer of descriptors within SCM_RIGHTS messages if
  (num_files_in_transit > maxfiles / unp_rights_ratio)


To generate a diff of this commit:
cvs rdiff -u -r1.94.2.1 -r1.94.2.1.4.1 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.56 -r1.56.30.1 src/sys/sys/file.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index