From owner-p4-projects Wed May 22 19:10:39 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BC11937B413; Wed, 22 May 2002 19:10:33 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DCFAC37B40B for ; Wed, 22 May 2002 19:10:32 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4N2AWw82362 for perforce@freebsd.org; Wed, 22 May 2002 19:10:32 -0700 (PDT) (envelope-from mini@freebsd.org) Date: Wed, 22 May 2002 19:10:32 -0700 (PDT) Message-Id: <200205230210.g4N2AWw82362@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to mini@freebsd.org using -f From: Jonathan Mini Subject: PERFORCE change 11758 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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