[igt-dev] [PATCH i-g-t v21 08/35] lib/intel_allocator: Add intel_allocator core

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 4 16:23:55 UTC 2021


Quoting Zbigniew Kempczyński (2021-03-01 16:13:36)
> +static void kill_children(int sig)
> +{

Might as well do

sighandler_t old = signal(sig, SIG_IGN);

> +       signal(sig, SIG_IGN);
> +       kill(-getpgrp(), sig);
> +       signal(sig, SIG_DFL);

signal(sig, old);

to reduce the assumptions.
> +}


More information about the igt-dev mailing list