[LTP] [PATCH V2 2/2] syscalls/clone3: New tests
Viresh Kumar
viresh.kumar@linaro.org
Thu Mar 19 16:51:01 CET 2020
On 20-03-20, 00:24, Cyril Hrubis wrote:
> Huh? All that we have to is to move the code from the child_rx_signal()
> to the do_child() here, the child would setup a handler and call
> pause(), then it checks if correct values have been stored to a global
> varibles. And the same for the parent, the point is that we should do a
> minimal amount of work in the handler itself.
>
> The problem here is that tst_res() writes to std streams, that have
> locks, so if we happen to get a signal while something writes there as
> well, we deadlock. Also printf()-like functions may call malloc, which
> has locks and may deadlock in the same way. It's unlikely that it will
> ever happen in this test, but that does not excuse us...
Ahh, I somehow read that as you are asking me to do all TPASS, TFAIL
thing in the run() call instead and so went into sharing between
parent child. Sorry about that.
--
viresh
More information about the ltp
mailing list