summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtol.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-04-13 23:33:36 +0000
committerjhb <jhb@FreeBSD.org>2002-04-13 23:33:36 +0000
commite93a8a367d8e585317af59c94921580daae0fe09 (patch)
treea9af4d93327ab271d1d0f15d79337bfed9dca182 /lib/libc/stdlib/strtol.c
parent38c9f516335b9581593ecd45940b127c595c80a1 (diff)
downloadFreeBSD-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/strtol.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud