lkml.org 
[lkml]   [2003]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectKernel Sockets Programming: closing sockets?

    I've got some code I'm using which is calling sock_alloc(), sock_map_fd(),
    socket->ops->connect() and then I'm trying to destroy it with
    sock_release(). I'm leaving around file descriptors, so its pretty
    obvious that I need to do more than sock_release() but I'm having trouble
    figuring out exactly what I need to do. I'm thinking about adding a call
    to sys_close() on the file descriptor I get back from sock_map_fd(), but I
    haven't implemented that yet. Can anyone offer some insight, or
    preferably some example code I could look at?

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:34    [W:0.033 / U:2.476 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site