]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/socket.c
saner FASYNC handling on file close
[linux-2.6-omap-h63xx.git] / net / socket.c
index 3e8d4e35c08f3892e615959f60b0855e72f348a1..57550c3bcabec28ab7ee82030e6d1d4cb36192a0 100644 (file)
@@ -990,7 +990,6 @@ static int sock_close(struct inode *inode, struct file *filp)
                printk(KERN_DEBUG "sock_close: NULL inode\n");
                return 0;
        }
-       sock_fasync(-1, filp, 0);
        sock_release(SOCKET_I(inode));
        return 0;
 }
@@ -1142,7 +1141,7 @@ static int __sock_create(struct net *net, int family, int type, int protocol,
 
        sock->type = type;
 
-#if defined(CONFIG_KMOD)
+#ifdef CONFIG_MODULES
        /* Attempt to load a protocol module if the find failed.
         *
         * 12/09/1996 Marcin: But! this makes REALLY only sense, if the user