Loading net/core/sock.c +7 −6 Original line number Diff line number Diff line Loading @@ -206,9 +206,10 @@ int sock_setsockopt(struct socket *sock, int level, int optname, */ #ifdef SO_DONTLINGER /* Compatibility item... */ switch (optname) { case SO_DONTLINGER: if (optname == SO_DONTLINGER) { lock_sock(sk); sock_reset_flag(sk, SOCK_LINGER); release_sock(sk); return 0; } #endif Loading Loading
net/core/sock.c +7 −6 Original line number Diff line number Diff line Loading @@ -206,9 +206,10 @@ int sock_setsockopt(struct socket *sock, int level, int optname, */ #ifdef SO_DONTLINGER /* Compatibility item... */ switch (optname) { case SO_DONTLINGER: if (optname == SO_DONTLINGER) { lock_sock(sk); sock_reset_flag(sk, SOCK_LINGER); release_sock(sk); return 0; } #endif Loading