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/