Date: Sat, 13 Apr 2002 16:19:13 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/procfs procfs_ctl.c Message-ID: <200204132319.g3DNJEf12636@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2002/04/13 16:19:13 PDT Modified files: sys/fs/procfs procfs_ctl.c Log: - Change procfs_control()'s first argument to be a thread pointer instead of a process pointer. - Move the p_candebug() at the start of procfs_control() a bit to make locking feasible. We still perform the access check before doing anything, we just now perform it after acquiring locks. - Don't lock the sched_lock for TRACE_WAIT_P() and when checking to see if p_stat is SSTOP. We lock the process while setting p_stat to SSTOP so locking the process is sufficient to do a read to see if p_stat is SSTOP or not. Revision Changes Path 1.39 +32 -47 src/sys/fs/procfs/procfs_ctl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204132319.g3DNJEf12636>