~kris/9p

9hist

e7636cd208e5babb0c9f4861bc4be0c3fb797f64 — David du Colombier 25 years ago 9f71bbf
Plan 9 from Bell Labs 2001-07-17
2 files changed, 7 insertions(+), 1 deletions(-)

M port/devproc.c
M port/proc.c
M port/devproc.c => port/devproc.c +3 -0
@@ 980,6 980,9 @@ procctlreq(Proc *p, char *va, int n)
	int i, npc;
	char buf[64];

	if(p->kp)	/* no ctl requests to kprocs */
		error(Eperm);

	kstrcpy(buf, va, sizeof buf);

	if(strncmp(buf, "stop", 4) == 0)

M port/proc.c => port/proc.c +4 -1
@@ 475,7 475,10 @@ sleep(Rendez *r, int (*f)(void*), void *arg)
	if(up->notepending) {
		up->notepending = 0;
		splx(s);
		error(Eintr);
		if(up->kp)
			print("attempt to interrupt %ld %s\n", up->pid, up->text);
		else
			error(Eintr);
	}

	splx(s);