Re: shutdown system call

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

 



On Wed, Aug 21, 2002 at 12:27:57PM +0530, Amit Shah wrote:
> Hi,
>     i was going through the implementation of the shutdown system call and no
> where i could find where the association from the socket descriptor to the
> sock structure is broken and the file structure and the descriptor released.
> Unlike close system call it cant be done at the time the shutdown system call
> is called. I found that when the complete fin ack sequence is over tcp_done()
> is called which deletes the sock structure and unhashes it and everything.
> But where is the entire mapping from the socket descriptor to the sock
> removed ?
> If someone could please guide me on this.

AFAIK shutdown is there to give more control over TCP shutdown
procedure, but you still have to call close to get rid of the file
descriptor.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux