Re: [PATCH 2/2] serial: Add support to Disconnect fd passing connections

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

 



Hi Marcel,

On Wed, Sep 7, 2011 at 2:56 PM, Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote:
> yes, you do have to keep track of the client. You wanna do a proper
> shutdown if the client exits unexpectedly. Or forgets to call shutdown.

I guess the kernel would auto release the socket if the process exit
and nobody else has a reference to it, so if we close our fd after it
has been transferred the only one with reference is the client, iirc
this was a problem to tty because we have to release the devnode to
disconnect which involves ioctl but afaik that is not the case for
sockets and the client can basically call close and be done with it,
right?

-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux