Hi, I am using 2.4.19. BTW singal_pending also doesn't work. > -----Original Message----- > From: Goldwyn Rodrigues [mailto:rgoldwyn@xxxxxxxxx] > Sent: Thursday, January 26, 2006 7:16 AM > To: Jitesh Shah > Cc: kernelnewbies@xxxxxxxxxxxx > Subject: Re: Sock_recvmsg() blocks and is not killable > > Hi Jitesh, > > > /* Waits for a packet, once a packet has been received, > > process it */ > > while(len <= 0) > > { > > len = recv(g_socket, data_buff, rx_buff_size, 0); > > } > > > > if(get_pending_signal(current)) > > { > > break; > > } > > /* Process the received packet */ > > process_host_rx(data_buff, len); > > } > > > What kernel version are you using? > Try using signal_pending(current) instead of > get_pending_signal(current). I did not find a > get_pending_signal function in my kernel sources (2.6.5). > > Regards, > > -- > Goldwyn :o) > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/