Created
          December 14, 2012 23:52 
        
      - 
      
 - 
        
Save hidek/4289691 to your computer and use it in GitHub Desktop.  
    linux-2.6.34.13/net/socket.c
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 1452 if (sock) { | |
| 1453 somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn; | |
| 1454 if ((unsigned)backlog > somaxconn) | |
| 1455 backlog = somaxconn; | |
| 1456 | |
| 1457 err = security_socket_listen(sock, backlog); | |
| 1458 if (!err) | |
| 1459 err = sock->ops->listen(sock, backlog); | |
| 1460 | |
| 1461 fput_light(sock->file, fput_needed); | |
| 1462 } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment