Re: [FIX] Make deadlock detection work for file locking

From: Werner Almesberger (almesber@lrc.epfl.ch)
Date: Fri Aug 25 2000 - 06:19:02 EST


Andries Brouwer wrote:
> I don't have POSIX in front of me, but I do not think
> the system must detect deadlock. It is allowed to detect
> deadlock, and in case it happens to do so EDEADLK is the
> apprpriate error return.

Yes. My question was: what is a deadlock (in this context) ?
I.e. under what conditions must it _not_ return EDEADLK ?

POSIX makes an attempt at describing it, but in rather vague
terms (see my original posting). Basically, the description
does not exclude EDEADLK already if a process holds any lock,
tries to get any other, and needs to sleep for it.

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:15 EST