[OpenAFS-devel] Very simple patch for libafs CPU hog on signal

Matt Peterson matt@caldera.com
Mon, 28 Jan 2002 17:09:16 -0700


On Monday 28 January 2002 04:59 pm, Nickolai Zeldovich wrote:
> any signals sent to the process while it's waiting in AFS (e.g. in Rx
> code, waiting for the server to respond) will be lost.  I think having
> the signal delivered when the AFS syscall completes would be a better
> solution.

I agree that it would be good to allow the app in user space to handle the 
syscall.  The problem is that there are several syscall that NEVER return.  

The work to make sure that these syscalls return gracefully with the 
appropriate errorcodes is going to take some work.  The patch I propose is an 
interim solution that at least keeps the CPU from being hogged.

-- 
Matt Peterson
Sr. Software Engineer
Caldera, Inc
matt@caldera.com