| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
anticipation of further changes to closef(). No binary change.
ok krw@ miod@ deraadt@
|
|
|
|
|
|
|
|
| |
problem has been tracked down. This fixes the sharing of the signal
handling state: shared bits go in sigacts, per-rthread bits goes in
struct proc.
ok deraadt@
|
|
|
|
|
|
| |
the obvious cases to return EINVAL and ENXIO.
ok tedu deraadt
|
|
|
|
|
|
| |
until they're zombies and then send them signals (for intr mounts). Until
that is untangled, the sigacts change is unsafe. sthen@ was the victim
for this one
|
|
|
|
|
|
|
|
|
|
|
|
| |
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves
to struct sigacts, wihle stuff that should be per rthread (ps_oldmask,
SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping
state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread
until our locking around coredumping is better.
Oh, and remove the old SunOS-compat ps_usertramp member.
"I like the sound of this" tedu@
|
|
|
|
|
|
|
|
|
| |
a vforked child behave correctly. Have the parent in a vfork()
wait on a (different) flag in *its* process instead of the child
to prevent a possible use-after-free. When ktracing the child
return from a fork, call it rfork if an rthread was created.
ok blambert@
|
| |
|
|
|
|
|
|
| |
$ADORABLE_FELINE.
ok deraadt@ matthew@
|
|
|
|
|
|
|
|
|
| |
so that the process-level stuff is to/from struct process and not
struct proc. This fixes a bunch of problem cases in rthreads.
Based on earlier work by blambert and myself, but mostly written
at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
|
|
|
| |
ok deraadt
|
| |
|
|
|
|
| |
ok deraadt matthew millert
|
|
|
|
|
|
|
|
| |
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new
situation. The larger buffers are required by the very high speed
KDDI devices in Japan (CF com, or USB ucom) so those are the only two
drivers which currently ask for a larger buffer size.
ok yasuoka miod
|
|
|
|
| |
a process instead of using curproc. ok deraadt
|
|
|
|
|
|
|
|
| |
of the output queue (that is, the data coming from the program on the
slave side) rather than falling through to ttioctl which returns the
size of the input queue (the amount written to the master).
ok deraadt
|
|
|
|
|
|
|
|
|
|
| |
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and
remove it from any occurences where both are used, except one for kqueue itself
and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag).
Based on a diff from tedu.
ok deraadt
|
|
|
|
| |
miod@ deraadt@ ok.
|
|
|
|
|
|
| |
after the master side of the pty has finished reading) and in ttyflush().
ok tedu millert
|
|
|
|
|
|
|
| |
the two ifs at the start of the function and both variables are only altered
under pt_softc_lock so cannot change between the checks.
ok guenther@
|
|
|
|
|
|
| |
bit faster, but come on, inlining is supposed to be reserved only
for things which *critically* need it.
ok millert
|
| |
|
|
|
|
| |
ok fgsch
|
|
|
|
|
| |
developers. if you notice tty weirdnesses in the next few months, talk to
me
|
|
|
|
| |
eyeballed and ok dlg@
|
|
|
|
|
|
| |
Pick reasonble names for the locks involved..
ok tedu@, art@
|
| |
|
|
|
|
|
| |
some TIOCGPGRP result fallout.
ok deraadt@
|
| |
|
|
|
|
|
|
|
| |
been opened but the slave cannot be. We can't do the FILE_SET_MATURE
until we are past all possible error paths since it calls FRELE(),
resulting in a reference count of 0, which closef() panics on #ifdef
DIAGNOSTIC. OK deraadt@
|
| |
|
|
|
|
|
|
| |
random stack garbage. Rename DEFAULT_NPTYS and DEFAULT_MAXPTYS to
NPTY_MIN and NPTY_MAX to better match their function and don't allow
setting kern.tty.maxptys > NPTY_MAX.
|
|
|
|
| |
and OK tedu@
|
|
|
|
| |
ok tedu pedro millert
|
| |
|
|
|
|
|
|
|
|
|
| |
is horrible and doesn't add anything.
Remove it.
XXX - the fdplock macro will need a separate cleanup.
niklas@ markus@ ok
|
| |
|
|
|
|
|
|
| |
instead of 16. E.g. it is now /dev/{p,t}typ[0-9a-zA-z] instead of just
/dev/{p,t}typ[0-9a-f]. This requires that you update MAKEDEV and run:
# cd /dev && ./MAKEDEV pty0 && rm -f [pt]ty[rq]*
|
|
|
|
| |
because sizeof(TTY_LETTERS) == sizeof(TTY_SUFFIX).
|
|
|
|
|
|
| |
before we get invoked, by making sure getfree thinks an unused and
unallocated pt_softc entry is actually free rather than following NULL.
ok cedric@
|
|
|
|
| |
when I fixed the other TTY_LETTERS/TTY_SUFFIX off-by-ones.
|
|
|
|
|
|
|
|
|
|
|
| |
ioctl(2), an unprivileged process may allocate a pty and have its owner
and mode set appropriately. This means that programs such as xterm and
screen no longer need to be setuid. Programs using the openpty()
function require zero changes and will "just work".
Designed by beck@ and deraadt@; changes by beck@ with cleanup (and
a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me.
Tested by many.
|
| |
|
|
|
|
|
|
|
|
|
| |
separate tty registering is gone now that sparc has switched to wscons, and
this makes the code less error-prone.
Also, remove tests for ttymalloc() failure, since it uses M_WAITOK.
ok millert@ deraadt@, tested by various people as well besides me...
|
|
|
|
|
|
|
| |
now call the poll backend. With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK
|
| |
|
|
|
|
| |
takes a void *. convert uiomove to take a void * as well. ok deraadt@
|
|
|
|
|
|
| |
for the slave size as described in the pr3209.
the regress has been created to verify for the conditions.
from wayne@epipe.com.au
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
| |
|