Re: Detecting removed ttyUSBn device with poll().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 30, 2014 at 07:29:18PM -0400, Dave Mielke wrote:
> [quoted lines by Greg KH on 2014/08/30 at 14:08 -0700]
> 
> >You should get a hangup signal on the device if it is removed, have you
> >tried that?
> 
> SIGHUP isn't mentioned in the code, so it's not being blocked. I just ran the 
> code with gdb to see, for sure, if any signal was being sent. Nothing happened 
> when I unplugged the device.

I don't know, you should be getting some type of signal if the device
node is still held open by your program.

What does strace say?

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux