[lkml]   [2005]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH x86_64] Live Patching Function on
    In article <>,
    Takashi Ikebe <> wrote:
    >Chris Wedgwood wrote:
    >> On Wed, Apr 20, 2005 at 04:35:07PM +0900, Takashi Ikebe wrote:>
    >>>To takeover the application status, connection type
    >>>communications(SOCK_STREAM) are need to be disconnected by close().
    >>>Same network port is not allowed to bind by multiple processes....
    >> AF_UNIX socket with SCM_RIGHTS
    >hmm.. most internet base services will use TCPv4 TCPv6 SCTP...
    >AF_UNIX can not use as inter-nodes communication.

    No, Chris means filedescriptor passing.

    You can pass any existing open filedescriptor to another process
    using an AF_UNIX socket.

    For example, the existing running process creates a UNIX socket in
    /var/run/mysocket that the new process can connect() to. The
    processes can then not only exchange all kinds of information,
    the old process can even send open filedescriptors over to
    the new process without closing/re-opening.

    See "man 7 unix", ANCILLARY MESSAGES -> SCM_RIGHTS

    Ancillary data is sent and received using sendmsg(2) and recvmsg(2).
    For historical reasons the ancillary message types listed below are
    specified with a SOL_SOCKET type even though they are PF_UNIX specific.
    To send them set the cmsg_level field of the struct cmsghdr to
    SOL_SOCKET and the cmsg_type field to the type. For more information
    see cmsg(3).

    Send or receive a set of open file descriptors from another pro-
    cess. The data portion contains an integer array of the file
    descriptors. The passed file descriptors behave as though they
    have been created with dup(2).


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-04-20 10:38    [W:3.327 / U:39.460 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site