Mr Igor Vertiletsky wrote:
> I did strace here is the end of file. it seems
> interecting:
> 
> ...
> 
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(4,
> 1), ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
> ioctl(1, TCGETS, {B38400 opost isig icanon echo ...})
> = 0
> write(1, "Cdrecord 1.9 (i686-pc-linux-gnu)"..., 72) =
> 72
> fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(4,
> 1), ...}) = 0
> brk(0x8075000)                          = 0x8075000
> open("/dev/sg0", O_RDWR)                = 3
> ioctl(3, TIOCGKISS, 0xbfffe150)         = 0
> write(1, "Linux sg driver version: 3.1.17\n", 32) = 32
> ioctl(3, CDROMAUDIOBUFSIZ, 0xbfffe0f8)  = 0
> ioctl(3, 0x5386, 0xbfffe0f4)            = 0
> fcntl64(3, F_GETFL)                     = 0x2 (flags
> O_RDWR)
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
> read(3, 0xbfffe078, 136)                = -1 EAGAIN
> (Resource temporarily unavailable)
> fcntl64(3, F_SETFL, O_RDWR)             = 0
> ioctl(3, TIOCSCCINI, 0xbfffe06c)        = 0
> open("/dev/sg1", O_RDWR)                = ?
> ERESTARTSYS (To be restarted)
> --- SIGINT (Interrupt) ---
> +++ killed by SIGINT +++
> 
> The full file is at
> http://igorvrt.freeservers.com/Linux
> strace.txt
> 
> What's up with /dev/sg1?  That's where it hangs.

Igor,
What does the ouput of "cat /proc/scsi/sg/*" look like?

An interruptible wait in sg_open() as indicated implies
/dev/sg1 has an exclusive lock on it and control^C was
pressed. Strange ... what sort of device is /dev/sg1
(i.e. "ls -l /dev/sg1")?


The 3.1.17 version of the sg driver is quite old (lk
2.4.0 -> 2.4.6). If you know how to build kernel modules,
then you can to http://www.torque.net/sg and get a later version
of sg for the lk 2.4 series.

Doug Gilbert


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to