[PATCH 2/2] app/pdump: handle SIGTERM and SIGHUP
Pattan, Reshma
reshma.pattan at intel.com
Tue Feb 27 10:59:37 CET 2024
> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> + sigaction(SIGHUP, NULL, &origaction);
Why do we need this ? Can't be this direct sigaction(SIGHUP, &action, NULL) without a below if code?
Can you please explain how this works.
> + if (origaction.sa_handler == SIG_DFL)
> + sigaction(SIGHUP, &action, NULL);
>
Other changes looks ok to me.
Regards,
Reshma
More information about the dev
mailing list