On Thu, 13 Jul 2006 22:56:07 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote:
> >> Well, simple test shows that an application just sees an EOF condition,
> >> i.e., read() returns 0 when device is disconnected.
> >
> > You probably run it with effective stty -isig by zeroing termios.
>
> Doesn't
On Thu, 13 Jul 2006 22:35:30 -0300
"Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> wrote:
| | If tty layer supports some "detach" functionality, it could be
| | easy to achieve, -- just detach tty at disconnect time and then later
| | free the structure at close time. It seems I need to take a c
On Thu, 13 Jul 2006 17:11:30 +0400
Sergei Organov <[EMAIL PROTECTED]> wrote:
| "Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> writes:
|
| > It seems to me that the current implementation is the easier way
| > to do it.
|
| Probably, but the easiest is not necessary the right one, as we all
|
Pete Zaitcev <[EMAIL PROTECTED]> writes:
> On Thu, 13 Jul 2006 16:31:35 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote:
>
>> > The application will get a signal that the device has "hung up" which
>> > usually causes it to automatically close the file handle, which is about
>> > the best that the
On Thu, 13 Jul 2006 16:31:35 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote:
> > The application will get a signal that the device has "hung up" which
> > usually causes it to automatically close the file handle, which is about
> > the best that the kernel can provide.
>
> Well, simple test show
"Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> writes:
> Hi Sergei,
>
> On Wed, 12 Jul 2006 15:42:14 +0400
> Sergei Organov <[EMAIL PROTECTED]> wrote:
>
> | Suppose I have a usb-serial device managed, say, by the airprime
> | driver. When I connect it, it is attached to the /dev/ttyUSB0, then,
Greg KH <[EMAIL PROTECTED]> writes:
> On Wed, Jul 12, 2006 at 03:42:14PM +0400, Sergei Organov wrote:
>> Suppose I have a usb-serial device managed, say, by the airprime
>> driver. When I connect it, it is attached to the /dev/ttyUSB0, then,
>> every disconnect/connect results in detaching from /de
On Wed, Jul 12, 2006 at 03:42:14PM +0400, Sergei Organov wrote:
> Suppose I have a usb-serial device managed, say, by the airprime
> driver. When I connect it, it is attached to the /dev/ttyUSB0, then,
> every disconnect/connect results in detaching from /dev/ttyUSB0 and
> attaching back to /dev/tt
Hi Sergei,
On Wed, 12 Jul 2006 15:42:14 +0400
Sergei Organov <[EMAIL PROTECTED]> wrote:
| Suppose I have a usb-serial device managed, say, by the airprime
| driver. When I connect it, it is attached to the /dev/ttyUSB0, then,
| every disconnect/connect results in detaching from /dev/ttyUSB0 and
Suppose I have a usb-serial device managed, say, by the airprime
driver. When I connect it, it is attached to the /dev/ttyUSB0, then,
every disconnect/connect results in detaching from /dev/ttyUSB0 and
attaching back to /dev/ttyUSB0 *unless* there is an application that
keeps an opened fd got from
10 matches
Mail list logo