Date: Sat, 6 Dec 2003 12:55:02 -0500 From: Mathew Kanner <mat@cnd.mcgill.ca> To: Lefteris Chatzibarbas <lefcha@hellug.gr> Cc: freebsd-current@freebsd.org Subject: Re: burncd(8) CD-RW blanking problem Message-ID: <20031206175502.GB95786@cnd.mcgill.ca> In-Reply-To: <20031206174859.GA22714@igloo.linux.gr> References: <20031206174859.GA22714@igloo.linux.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 06, Lefteris Chatzibarbas wrote: > [...] > After a little searching it seems that the program cannot get out of the > while() loop at line 198 of src/usr.sbin/burncd/burncd.c: > > while (1) { > sleep(1); > if (ioctl(fd, CDRIOCGETPROGRESS, &pct) == -1) > err(EX_IOERR,"ioctl(CDRIOGETPROGRESS)"); > if (pct > 0 && !quiet) > fprintf(stderr, > "%sing CD - %d %% done \r", > blank == CDR_B_ALL ? > "eras" : "blank", pct); > if (pct == 100 || (pct == 0 && last > 90)) > break; > last = pct; > } > > The pct variable is always 0, even after the blanking of the CD-RW is > finished (according to the device's LEDs), so the program falls into an > infinite loop. > > Of course, hitting ^C exits burncd... > > Does anyone else has this problem? Is it specific to my CD-R/RW device? I have the exact same problem. It stays stuck in the loop because ioctl(fd, CDRIOGETPROGRESS, &pct) pct is always 0. --Mat -- It's impossible to awaken a man who is pretending to be asleep. - Navajo saying
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031206175502.GB95786>