From 59433eb201d190658afb15b9d1e5a8b765e4cd78 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 21 Sep 2006 19:39:31 +0000 Subject: [PATCH] Investigating failure to open drive on eject --- trunk/cdrskin/cdrskin.c | 9 +++++---- trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/trunk/cdrskin/cdrskin.c b/trunk/cdrskin/cdrskin.c index 705517cc..323cb3b6 100644 --- a/trunk/cdrskin/cdrskin.c +++ b/trunk/cdrskin/cdrskin.c @@ -3611,17 +3611,18 @@ int Cdrskin_eject(struct CdrskiN *skin, int flag) #ifndef Cdrskin_burn_drive_eject_brokeN #ifndef Cdrskin_oldfashioned_api_usE - int i,ret,max_try= 3; + int i,ret,max_try= 5; if(!skin->do_eject) return(1); for(i= 0;i0) + if(ret>0 || i>=max_try-1) break; - if(skin->verbosity>=Cdrskin_verbose_debuG) + if(skin->verbosity>=Cdrskin_verbose_progresS) fprintf(stderr, - "cdrskin: ------ Attempt #%d failed to grab drive for eject\n",i+1); + "cdrskin: NOTE : Attempt #%d of %d failed to grab drive for eject\n", + i+1,max_try); usleep(1000000); } if(ret>0) { diff --git a/trunk/cdrskin/cdrskin_timestamp.h b/trunk/cdrskin/cdrskin_timestamp.h index c3f764d4..fa18d472 100644 --- a/trunk/cdrskin/cdrskin_timestamp.h +++ b/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.09.21.185623" +#define Cdrskin_timestamP "2006.09.21.194006"