Re: [PATCH net-next v2 1/7] selftests: drv-net: add a warning for bkg + shell + terminate

Stanislav Fomichev
2025-02-20T17:27:25Z

On 02/19, Jakub Kicinski wrote:
> Joe Damato reports that some shells will fork before running
> the command when python does "sh -c $cmd", while bash does
> an exec of $cmd directly. This will have implications for our
> ability to terminate the child process on bash vs other shells.
> Warn about using
>
> bkg(... shell=True, termininate=True)
>
> most background commands can hopefully exit cleanly (exit_wait).
>
> Link: https://lore.kernel.org/Z7Yld21sv_Ip3gQx@LQ3V64L9R2
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Acked-by: Stanislav Fomichev <sdf@fomichev.me>