#include "tcp.h" int FD; if (tcp_shutdown(FD) == -1) ... an error occurred.
The C function
tcp_shutdown() is used to kill a passive or active
socket. It is important that this is used instead of the system
close(2), since it affects the behavior of the C function