]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: Add os_set_pdeathsig helper function
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 24 Oct 2024 14:28:25 +0000 (22:28 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2024 09:34:54 +0000 (11:34 +0200)
commit4e5adbe447db382cc76e05613581f96aef4f91d2
tree37100e2cc0aa051c134fc1f060b44e36423c2d64
parentd61ac4a7496a7981947b8b894d40b0e35c316fa5
um: Add os_set_pdeathsig helper function

This helper can be used to set the parent-death signal of the calling
process to SIGKILL to ensure that the process will be killed if the
UML kernel dies unexpectedly without proper cleanup. This helper will
be used in the follow-up patches.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241024142828.2612828-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/os.h
arch/um/os-Linux/process.c