From ffc98f0d9de67cb1447cbc5501ad2293d65d6d40 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 7 Jan 2004 22:21:40 +0000 Subject: - use O_EXCL when opening the CD device so that we're sure no other application will try and touch it CVS patchset: 6009 CVS date: 2004/01/07 22:21:40 --- src/input/input_cdda.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/input/input_cdda.c') diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index e1bbe11d5..f91b3f99c 100644 --- a/src/input/input_cdda.c +++ b/src/input/input_cdda.c @@ -20,7 +20,7 @@ * Compact Disc Digital Audio (CDDA) Input Plugin * by Mike Melanson (melanson@pcisys.net) * - * $Id: input_cdda.c,v 1.41 2003/12/14 22:13:22 siggi Exp $ + * $Id: input_cdda.c,v 1.42 2004/01/07 22:21:40 hadess Exp $ */ #ifdef HAVE_CONFIG_H @@ -50,9 +50,9 @@ #define LOG_MODULE "input_cdda" #define LOG_VERBOSE -/* + #define LOG -*/ + #include "xine_internal.h" #include "xineutils.h" @@ -1406,7 +1406,7 @@ static char *_cdda_cddb_get_default_location(void) { * Small sighandler ;-) */ static void die(int signal) { - abort(); + //abort(); } /* @@ -1983,7 +1983,7 @@ static int cdda_open(cdda_input_plugin_t *this_gen, if (this_gen) this_gen->fd = -1; - fd = open (cdda_device, O_RDONLY); + fd = open (cdda_device, O_RDONLY|O_EXCL); if (fd == -1) { return -1; } -- cgit v1.2.3