[PATCH] strace: add :signal option to efault

Seraphime Kirkovski kirkseraph at gmail.com
Mon Dec 26 11:47:11 UTC 2016

On Mon, Dec 26, 2016 at 01:54:16PM +0300, Dmitry V. Levin wrote:
> Are they really mutually exclusive?  What if the signal is handled?
> Why can't we inject both a signal and a fault into the same syscall?

You're right, strictly speaking they aren't mutually exclusive. But if 
we only want to fault the syscall, injecting an error value suffices. 
Sending a signal _and_ setting an error value seems like an overkill to 
me. That said, if one really wants to bypass signal masking, one can 
fault the call to signal.

More information about the Strace-devel mailing list