• R
    um: Cleanup SIGTERM handling · 91d44ff8
    Richard Weinberger 提交于
    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: NRichard W.M. Jones <rjones@redhat.com>
    Signed-off-by: NRichard Weinberger <richard@nod.at>
    91d44ff8
ubd_user.c 1.1 KB