[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: signal pending confusion !!!
Hi,
pradeep singh a écrit :
> /*code snippet */
> if( signal_pending ( current ) )
> (STp->buffer)->syscall_result = (-EINTR);
> else
> ...
> /*ends here */
>
> What is signal pending doing here?
It tests if a signal occured during the preceding scsi_allocate_request().
Sincerly,
Thomas
--
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/