FreeBSD src
Go to file
Don Lewis 9d2b090975 We can't call fsetown() from sonewconn() because sonewconn() is be called
from an interrupt context and fsetown() wants to peek at curproc, call
malloc(..., M_WAITOK), and fiddle with various unprotected data structures.
The fix is to move the code that duplicates the F_SETOWN/FIOSETOWN state
of the original socket to the new socket from sonewconn() to accept1(),
since accept1() runs in the correct context.  Deferring this until the
process calls accept() is harmless since the process can't do anything
useful with SIGIO on the new socket until it has the descriptor for that
socket.

One could make the case for not bothering to duplicate the
F_SETOWN/FIOSETOWN state and requiring the process to explicitly make the
fcntl() or ioctl() call on the new socket, but this would be incompatible
with the previous implementation and might break programs which rely on
the old semantics.

This bug was discovered by Andrew Gallatin <gallatin@cs.duke.edu>.
1998-11-23 00:45:39 +00:00
bin Indicate that the thing not found was not /bin/pwd but rather $CWD (or .). 1998-11-21 08:45:22 +00:00
contrib xfer typo 1998-11-20 08:12:05 +00:00
crypto Remove redundant decl. of time(). Causes problems on alpha 1998-09-01 15:17:28 +00:00
etc Add a sample "/etc/pam.conf" file that configures the authentication 1998-11-20 23:20:01 +00:00
games Fix typo (if it's not a typo, then it doesn't make sense IMHO) 1998-11-09 05:40:22 +00:00
gnu Use mmap for reading files. This is faster than read(). 1998-11-14 23:37:32 +00:00
include Don't forget to use the appropriate __printf*like attribute for verr* 1998-11-22 05:12:27 +00:00
kerberos5 While I am no longer making a shared library, nuke the old one to prevent 1998-08-30 13:08:54 +00:00
kerberosIV Add an explicit dependency on libcrypt so that shared library 1998-11-18 00:40:07 +00:00
lib Install PAM modules into ${SHLIBDIR}, not ${LIBDIR}. 1998-11-22 19:33:27 +00:00
libexec Find "klogin.c" in "src/lib/libpam/modules/pam_kerberosIV" instead 1998-11-21 02:11:16 +00:00
lkm Install kld version (there can be only one) 1998-11-11 07:04:49 +00:00
release Doc fixes for CAM devices. If I ever truly understand the logic behind 1998-11-21 21:45:27 +00:00
sbin Change sd -> da in examples. 1998-11-19 20:22:10 +00:00
secure Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
share (1) Remove LOOP_VAR and LOOP_OPTIONS. It's a hack and just too many things 1998-11-20 04:00:38 +00:00
sys We can't call fsetown() from sonewconn() because sonewconn() is be called 1998-11-23 00:45:39 +00:00
tools Removed all `vector xxxintr' specifications. Interrupt handlers are now 1998-10-22 15:53:06 +00:00
usr.bin Work around the problem that login won't link if NOSHARED=yes, 1998-11-21 18:27:15 +00:00
usr.sbin Doc fixes for CAM devices. If I ever truly understand the logic behind 1998-11-21 21:45:27 +00:00
COPYRIGHT Add Id keyword 1998-09-13 23:11:13 +00:00
Makefile Restored all lost user targets that are supported by bsd.subdir.mk: 1998-10-17 15:25:26 +00:00
Makefile.inc0 Restored all lost user targets that are supported by bsd.subdir.mk: 1998-10-17 15:25:26 +00:00
Makefile.inc1 Make sure libskey is built before libpam. It is required for one of 1998-11-20 02:03:52 +00:00
Makefile.upgrade 3.0-RELEASE and now the post-release 3.0-CURRENT were being declared 1998-10-17 05:40:46 +00:00
README Correct the facts. The kerberosIV/ directory is not export restricted. 1998-09-13 09:38:34 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on: $Id: README,v 1.12 1998/06/30 08:08:05 jkh Exp $

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel and the contents of /etc.  Please see the top of the Makefile
in this directory for more information on the standard build targets
and compile-time flags.

Building a kernel with config(8) is a somewhat more involved process,
documentation for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file LINT contains entries for all possible devices, not
just those commonly used, and is meant more as a general reference
than an actual kernel configuration file (a kernel built from it
wouldn't even run).


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

crypto		Export controlled stuff (see crypto/README).

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

lkm		Loadable Kernel Modules.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		DES and DES-related utilities - NOT FOR EXPORT!

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html