• Richard Weinberger's avatar
    um: Cleanup SIGTERM handling · 91d44ff8
    Richard Weinberger authored
    Richard reported that some UML processes survive if the UML
    main process receives a SIGTERM.
    This issue was caused by a wrongly placed signal(SIGTERM, SIG_DFL)
    in init_new_thread_signals().
    It disabled the UML exit handler accidently for some processes.
    The correct solution is to disable the fatal handler for all
    UML helper threads/processes.
    Such that last_ditch_exit() does not get called multiple times
    and all processes can exit due to SIGTERM.
    Reported-and-tested-by: default avatarRichard W.M. Jones <rjones@redhat.com>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    91d44ff8
os.h 9.85 KB