diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-13 23:33:36 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-13 23:33:36 +0000 |
commit | e93a8a367d8e585317af59c94921580daae0fe09 (patch) | |
tree | a9af4d93327ab271d1d0f15d79337bfed9dca182 /lib/libc/stdlib/strtoll.c | |
parent | 38c9f516335b9581593ecd45940b127c595c80a1 (diff) | |
download | FreeBSD-src-e93a8a367d8e585317af59c94921580daae0fe09.zip FreeBSD-src-e93a8a367d8e585317af59c94921580daae0fe09.tar.gz |
- Change killpg1()'s first argument to be a thread instead of a process so
we can use td_ucred.
- In killpg1(), the proc lock is sufficient to check if p_stat is SZOMB
or not. We don't need sched_lock.
- Close some races in psignal(). In psignal() there is a big switch
statement based on p_stat. All the different cases are assuming that
the process (or thread) isn't going to change state out from under it.
To ensure this is true, just lock sched_lock for the entire switch. We
practically held it the entire time already anyways. This also
simplifies the locking somewhat and actually results in fewer lock
operations.
- Allow signotify() to be called with the sched_lock held since psignal()
now does that.
- Use td_ucred in a couple of places.
Diffstat (limited to 'lib/libc/stdlib/strtoll.c')
0 files changed, 0 insertions, 0 deletions