Help with 4.3 mod to kill uninteruptable procs.

Y. Rock Lee rock at cbnews.att.com
Fri Feb 22 02:28:45 AEST 1991


In article <1991Feb19.001941.29928 at lynx.CS.ORST.EDU> gatesl at mist.cs.orst.edu (Lee Gates) writes:
>	Will the above method cause a race condition resulting from
>the fact that the process probably assumes that the next time it runs 
>it will have the resource it was sleeping on?  And if so, I would
>appreciate some other suggestions as to how to solve this problem.

Yes, the process will think it has the resource it was sleeping on.
But, it will be killed and release the resource during its exit
before it has a chance to "think". This part looks OK to me.
My only concern is that the driver of the particular device which
the process is waiting for may react crazily when it is misinformed
(a good driver should guard against this).


Y. Rock Lee, att!cblph!rock
             rock at cblph.ATT.COM



More information about the Comp.unix.wizards mailing list