> So far I tried this: > accept(struct sock sk*) > { > DECLARE_WAITQUEUE(wait, current); > current->state = TASK_INTERRUPTIBLE; Here you should actually add your task to the waitqueue. If you fail to do that, your task will never be woken. Just declaring isn't enough. HTH Oliver -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/