Date: Wed, 22 May 2002 19:10:32 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 11758 for review Message-ID: <200205230210.g4N2AWw82362@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11758 Change 11758 by mini@mini_stylus on 2002/05/22 19:09:41 Revert change 11564: des would like to keep this #if 0'd code. However, change the code so that it at least compiles and looks somewhat like it would need to in order to function. Affected files ... ... //depot/projects/kse/sys/fs/procfs/procfs_ioctl.c#6 edit Differences ... ==== //depot/projects/kse/sys/fs/procfs/procfs_ioctl.c#6 (text+ko) ==== @@ -91,10 +91,26 @@ error = EINVAL; break; } +#if 0 + mtx_lock_spin(&sched_lock); + p->p_step = 0; + if (P_SHOULDSTOP(p)) { + p->p_xstat = sig; + p->p_flag &= ~(P_STOPPED_TRACE|P_STOPPED_SGNL); + FOREACH_THREAD_IN_PROC(p, td) + setrunnable(td); /* XXX Totally bogus */ + mtx_unlock_spin(&sched_lock); + } else { + mtx_unlock_spin(&sched_lock); + if (sig) + psignal(p, sig); + } +#else if (sig) psignal(p, sig); p->p_step = 0; wakeup(&p->p_step); +#endif break; default: error = (ENOTTY); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205230210.g4N2AWw82362>