Re: [hackers] [PATCH] dd: Use sigaction(2) to obviate select(2)

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Tue, 10 Oct 2017 16:29:23 +0100

On Sun, Sep 10, 2017 at 04:31:24AM -0700, Eric Pruitt wrote:
> By setting the SIGINT handler with sigaction(2), automatic retries of
> the splice(2) syscall can be disabled by not setting SA_RESTART. This
> makes it possible to use Ctrl+C even if the "if" operand refers to the
> controlling terminal. The SIGINT message has also been moved outside the
> signal handler since fprintf(3) is not an async-signal-safe function.

Thanks, applied.
Received on Tue Oct 10 2017 - 17:29:23 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 10 2017 - 17:36:56 CEST