Heiner reports that FreeBSD's passopen() and xptopen() don't allow
nonblocking access so O_NONBLOCK might do harm. But it's just a guess pending what others discover/report.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: freebsd.c,v 1.32 2005/05/08 09:58:33 rocky Exp $
|
$Id: freebsd.c,v 1.33 2005/05/09 23:19:40 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char _rcsid[] = "$Id: freebsd.c,v 1.32 2005/05/08 09:58:33 rocky Exp $";
|
static const char _rcsid[] = "$Id: freebsd.c,v 1.33 2005/05/09 23:19:40 rocky Exp $";
|
||||||
|
|
||||||
#include "freebsd.h"
|
#include "freebsd.h"
|
||||||
|
|
||||||
@@ -840,7 +840,7 @@ cdio_open_am_freebsd (const char *psz_orig_source_name,
|
|||||||
ret = cdio_new ((void *)_data, &_funcs);
|
ret = cdio_new ((void *)_data, &_funcs);
|
||||||
if (ret == NULL) return NULL;
|
if (ret == NULL) return NULL;
|
||||||
|
|
||||||
if (cdio_generic_init(_data, O_RDONLY|O_NONBLOCK))
|
if (cdio_generic_init(_data, O_RDONLY))
|
||||||
if ( _data->access_mode == _AM_IOCTL ) {
|
if ( _data->access_mode == _AM_IOCTL ) {
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user