From nobody Mon Nov 25 22:00:19 2024 Received: from out0-196.mail.aliyun.com (out0-196.mail.aliyun.com [140.205.0.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFD601D1745 for ; Thu, 24 Oct 2024 14:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729780442; cv=none; b=XvYgP09T3xrFrNK7zJF6tr6VCYm0W/fV8StcJ7scy0VzRL9VQercvOGKaXPyGRuOYNvhKta12JY9Bw8A7RjucCd1wgVf/IgHw/bZiPxEsK1J89oel/CPXygSh/Ef1ylCVN44jzxBn0BiZT6HMm0J/kAhp0e+WdoQPzU3hN2N3qI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729780442; c=relaxed/simple; bh=2KuxAKEg5UlIEaFA7fkjnIg4NOYGWc+teDk36qv6NiQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K2vjtcpj6i8ngiBSZih5tzdmR5H/UWMWRqmXf9DFDSdb7idBLZ8B0vHc76U3nS77QsBuPV7lVh2uhV3/2oeC1uwV/Bl4/MgGQWI9VGejPUvcvLud+uPA2mx0sgK8lstJ+eB/4yKMPOkM/oXjHmTBWpTQwtHw/Mr4bu17xm1jC0Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=kyNKJM7o; arc=none smtp.client-ip=140.205.0.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="kyNKJM7o" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1729780435; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=9F+/gG2/NpWN+fSAPQ0vZiXCLF44MabL2VbrE4Rm4ys=; b=kyNKJM7oGJevt94n5kxYDH22ZlY1cZHU4ug/4OWCUSeGRJ1CmU7LVUqGNTOCkBsuikJ1POKZdwEPFdWrzlQDSvyYhkW/IMWEU/wSZ/WTvxNjWDTxlfWlVGfYefiX63tJ4M0P6CEYQK7qkuAAWLQjqIsxQDk5qTMR2RHyAcY3mWc= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.ZreBt-P_1729780117 cluster:ay29) by smtp.aliyun-inc.com; Thu, 24 Oct 2024 22:28:37 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 4/4] um: Use os_set_pdeathsig helper in winch thread/process Date: Thu, 24 Oct 2024 22:28:28 +0800 Message-Id: <20241024142828.2612828-5-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241024142828.2612828-1-tiwei.btw@antgroup.com> References: <20241024142828.2612828-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since we have a helper now, let's switch to using it. It will make the code slightly more consistent. Signed-off-by: Tiwei Bie --- arch/um/drivers/chan_user.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/um/drivers/chan_user.c b/arch/um/drivers/chan_user.c index 1434114b2f34..35f9beeb19b3 100644 --- a/arch/um/drivers/chan_user.c +++ b/arch/um/drivers/chan_user.c @@ -10,7 +10,6 @@ #include #include #include -#include #include "chan_user.h" #include #include @@ -162,7 +161,7 @@ static __noreturn int winch_thread(void *arg) int count; char c =3D 1; =20 - prctl(PR_SET_PDEATHSIG, SIGKILL); + os_set_pdeathsig(); =20 pty_fd =3D data->pty_fd; pipe_fd =3D data->pipe_fd; --=20 2.34.1