From darrylo@sonic.net  Sat Sep  1 11:36:24 2001
Return-Path: <darrylo@sonic.net>
Received: from marine.sonic.net (marine.sonic.net [208.201.224.37])
	by hub.freebsd.org (Postfix) with SMTP id AD54237B403
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 Sep 2001 11:36:24 -0700 (PDT)
Received: (qmail 5223 invoked from network); 1 Sep 2001 18:36:23 -0000
Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36)
  by marine.sonic.net with SMTP; 1 Sep 2001 18:36:23 -0000
Received: (from darrylo@localhost) by sonic.net (8.11.6/8.7.3) id f81IaLs12988; Sat, 1 Sep 2001 11:36:21 -0700
Message-Id: <20010901113621.A12895@bolt.sonic.net>
Date: Sat, 1 Sep 2001 11:36:21 -0700
From: Darryl Okahata <darrylo@bolt.sonic.net>
Reply-To: Darryl Okahata <darrylo@sonic.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: darrylo@soco.agilent.com, darrylo@sonic.net
Subject: aborting burncd using Ctrl-C screws up CD-R/RW drive

>Number:         30258
>Category:       bin
>Synopsis:       aborting burncd using Ctrl-C screws up CD-R/RW drive
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 01 11:40:00 PDT 2001
>Closed-Date:    Mon Jan 7 11:25:07 PST 2002
>Last-Modified:  Mon Jan 07 11:26:52 PST 2002
>Originator:     Darryl Okahata
>Release:        FreeBSD 4.4-RC i386
>Organization:
>Environment:
System: FreeBSD lina 4.4-RC FreeBSD 4.4-RC #0: Sat Sep 1 00:19:05 PDT 2001 root@lina:/usr/src/sys/compile/lina i386

FreeBSD CVSUP'd on Thu Aug 30 22:03:24 PDT 2001, from cvsup7.

System config:
	1.3GHz Athlon, ASUS A7M266 motherboard
	512MB RAM
	60GB IBM 60GXP at primary master (UDMA100)
	Plextor 12/10/32A ATAPI CD-R/RW at secondary master (PIO)
	DVD-ROM <Pioneer DVD-ROM ATAPIModel DVD-116 0107> at secondary slave
		(PIO)

dmesg available upon request

	
>Description:

If you hit Ctrl-C to abort burncd, burncd leaves the CD-R/RW drive in an
unusable state: the disk cannot be ejected, and any further attempt at
using burncd results in (console) messages like:

	acd0: PREVENT_ALLOW - ILLEGAL REQUEST asc=2c ascq=00 error=04
	acd0: SET_SPEED - ILLEGAL REQUEST asc=2c ascq=00 error=04
	acd0: PREVENT_ALLOW - ILLEGAL REQUEST asc=2c ascq=00 error=04

Maybe the drive isn't unlocked when Ctrl-C is hit?????

(I was burning a cd-rw, and I didn't realize that the default speed is
"1".  I wanted to abort the process, erase the cd-rw, and retry.
Hitting Ctrl-C was a bad idea.  ;-)

	
>How-To-Repeat:

Start a burn using burncd and hit Ctrl-C after a moment or two.

	
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: mikeh 
Responsible-Changed-When: Sat Dec 22 23:59:52 PST 2001 
Responsible-Changed-Why:  
sos is author of burncd 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30258 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Jan 7 11:25:07 PST 2002 
State-Changed-Why:  
"you shouldn't do that" (tm) 

Anyhow its not possible to totally protect a userland 
program form being killed, which makes it impossible 
(well almost) to make this totally safe. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30258 
>Unformatted:
