| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| |
|
|
|
|
| |
(aka ^T), summing CPU and check runnable/running status of all threads.
ok deraadt@
|
| |
|
|
| |
testing help mpi@
|
| |
|
|
|
| |
compat. This will be used to implement tcgetsid() in the future.
OK kettenis@ guenther@
|
| | |
|
| |
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
for big time_t and casting to long long
ok deraadt@
|
| |
|
|
| |
ok matthew@ deraadt@
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
we do not grow space like clist chains). Clamp it a bit more precisely,
ensuring a bit of space for kernel ^T handling and such. It was definately
wrong, and we can tune this if required later.
ok kettenis
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
|
|
|
| |
of per-rthread. Handling of per-thread tick and runtime counters
inspired by how FreeBSD does it.
ok kettenis@
|
| |
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
| |
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 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
|
| |
|
|
| |
from Dawe.
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
after the master side of the pty has finished reading) and in ttyflush().
ok tedu millert
|
| |
|
|
|
| |
they are signed int)
ok miod guenther
|
| |
|
|
|
|
|
|
| |
Change to void function.
Also, no need to have global tty stats pointer, so just return it
from clalloc, as the caller frees it immediately anyway.
ok miod@
|
| |
|
|
|
|
|
|
|
| |
write buffer, not the amount of space used. It is debatable wether the
size of the write buffer is set by the size of the buffer or the high water
mark. For now, go with the former since that seems to be more consistent
with what the pipe and socet code does. It is also what NetBSD does.
ok deraadt@
|
| |
|
|
| |
into a potentially sleeping function... ok tedu.
|
| | |
|
| |
|
|
|
| |
fixing (status) ^T support on some ttys without carrier
ok pyr
|
| |
|
|
|
| |
developers. if you notice tty weirdnesses in the next few months, talk to
me
|
| |
|
|
|
|
| |
replace an hard coded value with M_WAITOK
ok krw@
|
| |
|
|
| |
eyeballed and ok dlg@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
it's a good idea to use atomic.h operations on it. This mechanic
change updates all bit operations on p_flag to atomic_{set,clear}bits_int.
Only exception is that P_OWEUPC is set by MI code before calling
need_proftick and it's automatically cleared by ADDUPC. There's
no reason for MD handling of that flag since everyone handles it the
same way.
kettenis@ ok
|
| |
|
|
| |
mrd@alkemio.org
|
| |
|
|
|
| |
using ioctl TIOCSTSTAMP & TIOCGTSTAMP. to be used later for gps monitoring
type things; ok kettenis miod
|
| | |
|
| |
|
|
| |
no change in compiler assembly output.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
|
|
|
|
| |
argument. old cred only calls user suser_ucred. this will allow future
work to more flexibly implement the idea of a root process. looks like
something i saw in freebsd, but a little different.
use of suser_ucred vs suser in file system code should be looked at again,
for the moment semantics remain unchanged.
review and input from art@ testing and further review miod@
|
| |
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|