mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Thread Insomnia !!!
@ 2002-01-04 10:35 Amber Palekar
  0 siblings, 0 replies; only message in thread
From: Amber Palekar @ 2002-01-04 10:35 UTC (permalink / raw)
  To: kernel list

hi,
  i want to do a non-blocking sock_recvmsg in a
module(2.4.4 on an i386) .( i am usign MSG_DONTWAIT
for that ) I am doing this inside a kernel
thread.After this stmt , i put the thread to sleep by
doing :-

 while(1)
{
   .....
   .....
   ret = sock_recvmsg(.....,MSG_DONTWAIT);
   if(ret < 0)
   {
        DECLARE_WAIT_QUEUE_HEAD(wait);
        interruptible_sleep_on_timeout(&wait,HZ);
   }
   else
   {
        /* print the mesg and get out of loop */
   }
 }
      As soon as i insmod this module my m/c just
hangs after it reaches the sleep stmt( i used printk
debugging to get this ) Any solutions ????

TIA,
Amber

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-04 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-04 10:35 Thread Insomnia !!! Amber Palekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®