Investigating failure to open drive on eject

trunk@386
Thomas Schmitt 16 years ago
parent 7ea38bbd31
commit bf5073e7c1
  1. 9
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

@ -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;i<max_try;i++) {
ret= Cdrskin_grab_drive(skin,2|((i<max_try-1)<<2));
if(ret>0)
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) {

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.21.185623"
#define Cdrskin_timestamP "2006.09.21.194006"

Loading…
Cancel
Save