mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
91d44ff860
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: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Richard Weinberger <richard@nod.at>
16 lines
318 B
C
16 lines
318 B
C
/*
|
|
* Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
|
|
* Copyright (C) 2001 RidgeRun, Inc (glonnon@ridgerun.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#ifndef __UM_UBD_USER_H
|
|
#define __UM_UBD_USER_H
|
|
|
|
extern int start_io_thread(unsigned long sp, int *fds_out);
|
|
extern int io_thread(void *arg);
|
|
extern int kernel_fd;
|
|
|
|
#endif
|
|
|