Age | Commit message (Collapse) | Author |
|
ok miod@
|
|
|
|
after discussions with beck deraadt kettenis.
|
|
|
|
struct ucred; struct process then directly links to the ucred
Based on a discussion at c2k10 or so before noting that FreeBSD and
NetBSD did this too.
ok matthew@
|
|
testing help mpi@
|
|
|
|
when events is set to POLLIN and POLLHUP when events is set to
POLLOUT. In the pty case we need to be careful to only treat the
pty as closed if carrier is on. This fixes a hang on close problem
seen with ssh and xterm.
|
|
is fixed.
|
|
when events is set to POLLIN and POLLHUP when events is set to
POLLOUT. OK deraadt@
|
|
when we block due to hitting the TTYHOG limit. OK miod@
|
|
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@
|