[lkml]   [2003]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:34    [W:0.081 / U:1.856 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site