From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 Feb 1996 04:57:34 -0500 From: philw@plan9.att.com philw@plan9.att.com Subject: exec(2) problem? Topicbox-Message-UUID: 3b13fd38-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19960206095734.XUnrerXkeIizENQe70OUOC1zcbPFOiejiSLpOZYoGo8@z> 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();