Age | Commit message (Collapse) | Author |
|
---------------------------
On the exit of the child process which parent either set SA_NOCLDWAIT
or ignored SIGCHLD, unconditionally wake up the parent instead of doing
this only when the child is a last child.
This brings us in line with other U**xes that support SA_NOCLDWAIT. If
the parent called waitpid(childpid), then exit of the child should wake
up the parent immediately instead of forcing it to wait for all children
to exit.
---------------------------
ok tedu@, millert@
|
|
|
|
this adds a tiny bit more protection from list manipulation.
|
|
|
|
|
|
originally by thib.
ok deraadt jsing and anyone who tested
|
|
|
|
sigmask even if there are no pending signals under the temporary
sigmask.
Refactor existing select() and poll() system calls to introduce the
pselect() and ppoll() system calls.
Add rthread wrappers for pselect() and ppoll(). While there, update
cancellation point comments to reflect recent fdatasync() addition.
Minor bumps for libc and librthread due to new symbols.
ok guenther, millert, deraadt, jmc
|
|
ok miod
|
|
anyone is waiting with kqueue their knotes may still have a reference to
the tty and later try to use it in the filt_tty* functions.
To avoid this, walk the knotes in ttyfree(), remove them from the tty's
list and invalidate them by setting kn_hook to NODEV. The filter
functions can then check for this and safely ignore the knotes.
ok tedu matthieu
|
|
the random pool as unique-esque-but-not-secret data.
inspired by conversations with tedu@/deraadt@
ok deraadt@
|
|
ok deraadt
|
|
order to detect double init mistakes. add a similar check and rearrange
pool_destory to detect the opposite mistake.
|
|
|
|
|
|
|
|
the special provided when the mount was requested. This may be the same as
the special that was actually used for the mount (e.g. in the case of a
device node) or it may be different (e.g. in the case of a DUID).
Whilst here, change f_ctime to a 64 bit type and remove the pointless
f_spare members.
Compatibility goo courtesy of guenther@
ok krw@ millert@
|
|
ok millert@
|
|
number match during signature block read during speculative unhibernate on
boot. If the magic number matches but we have otherwise chosen to not
unhibernate (due to kernel/memory mismatch), clear the signature block
early to avoid accidentally trying to unhibernate on subsequent boots. This
prevents accidental unhibernates and endless unhibernate/reboot cycles.
Add a define for HIBERNATE_DEBUG for various debugging printfs (disabled by
default).
Finally, change some KASSERTs to warning printfs (they probably shouldn't
have been KASSERTs in the first place).
"looks good" deraadt@
|
|
|
|
|
|
|
|
allow some more pool debug code to be enabled if not compiled in
bump poison size back up to 64
|
|
ok deraadt guenther kettenis matthew
|
|
|
|
This would create a weird set of states in TCP. FreeBSD has the
same check.
Issue found by and OK guenther@
|
|
Use limfree() instead of decrementing the reference counter directly.
ok kettenis@
|
|
ok deraadt
|
|
leaving us with a free type function that isn't atomic. deal with this
by erasing any reachable pointers to the vnode first, then free it.
ok deraadt guenther
|
|
fd to resolve against that isn't a directory
ok matthew@
|
|
|
|
.h files to pull it in, if needed
ok tedu
|
|
ok deraadt
|
|
msdos, NFS, fifos and devices, plus support for querying it in
getconf(2) and the requisite pathconf(2) manpage blurb
ok tedu@
|
|
ok deraadt guenther
|
|
_before_ vrele()'ing the old one, so that you can't catch the process
with a vnode with no references.
Similarly, in checkdirs(), just count the needed releases and do
them all at the end. (I think I saw this in FreeBSD.)
Original problem encountered by landry@ (yay for backtrace)
ok tedu@ deraadt@
|
|
_PC_PRIO_IO, and _PC_SYNC_IO names in VOP_PATHCONF(), as they're
fs-independent for us. Since we don't support latter three on any
fs, we can also define the related _POSIX_{ASYNC,PRIO,SYNC}_IO
symbols in <unistd.h> (via sys/unistd.h) with value -1.
Also, zap pointless tty-only values from procfs(!).
ok beck@, deraadt@
|
|
all in one place. Saves one additional #ifdef, no functional change.
OK mikeb@
|
|
ok beck deraadt after a style issue noticed by kettenis
|
|
ok deraadt
|
|
ok deraadt mpi
|
|
|
|
from hshoexer@; ok tedu@, "looks good" deraadt@
|
|
hide a few more pointery things.
ok deraadt
|
|
|
|
any kernel addresses information.
ok guenther
|
|
unsplice() the sockets before soidle() goes to splsoftnet. In this
case, unsplice() was called twice. So check wether splicing still
exists within the splsoftnet protection.
Uvm fault in sounsplice() reported by keith at scott-land dot net.
OK claudio@
|
|
|
|
ok deraadt
|
|
|