> >> And, if we are here, what's wrong with hald using O_EXCL to not >> interrupt any other program (does hald need to check the media >> if it's in use)? I assume the problem wouldn't exist with hald >> using O_EXCL and cdrecord not (yet) using it, would it? > >Let me throw in a stupid question: Is O_EXCL cooperative, in that other >access is only blocked if both tasks use open(...O_EXCL...)? > That would be some sort of "shared" what you describe. O_EXCL basically means that there may only be one file descriptor open on it across the whole kernel. "if both tasks" already includes multiple file descriptors. (Note that dup() does not really make a new filedescriptor.) Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Albert Cahalan <acahalan@gmail.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jan Engelhardt <jengelh@linux01.gwdg.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Albert Cahalan <acahalan@gmail.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Olivier Galibert <galibert@pobox.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Krzysztof Halasa <khc@pm.waw.pl>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Matthias Andree <matthias.andree@gmx.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- Prev by Date: Re: [PATCH] liyitec: Liyitec PS/2 touchscreen driver
- Next by Date: Re: Wanted: hotfixes for -mm kernels
- Previous by thread: Re: CD writing in future Linux (stirring up a hornets' nest)
- Next by thread: Re: CD writing in future Linux (stirring up a hornets' nest)
- Index(es):
![]() |