9fans archive / 1996 / 02 / 6 /    prev next

From: philw@pla... philw@pla...
Subject: exec(2) problem?
Date: Tue, 6 Feb 1996 04:57:34 -0500

It's a problem, imagereclaim should not call sleep.
change segment.c:228 from resrcwait(0) to sched().
This will prevent races cleaning the cache but
still allow things to proceed. I looked at the
other potentially sleeping things (close, fdclose)
and they seem ok because there is a waserror
on close which prevents the error from propagating
back to exec.

Diff's from the CD:

diff /n/juke/plan_9/sys/src/9/port/segment.c /sys/src/9/port:

228c228
< 		resrcwait(0);
---
> 		sched();