Re: accept does not return in case a signal arrives

From: Alan Cox
Date: Wed Nov 03 2004 - 09:27:25 EST


On Mer, 2004-11-03 at 13:26, Gerrit BruchhÃuser wrote:
> Dear Kernel-team,
>
> on Linux, 'accept' system call does not return in case I send SIGTERM to
> my application; while it does on OSF-Alpha.

signal() may or may not interrupt some system calls. Use sigaction if
you want to force a given behaviour (and write portable code)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/