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. > +}