Re: Sock_recvmsg() blocks and is not killable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux