From b23d5067c6a5545ff333efadd5a81380dda7ab2f Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Fri, 4 Apr 2025 12:49:37 +0200 Subject: [PATCH] Add ContextVerb::Interrupt. --- src/flag.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flag.rs b/src/flag.rs index 3f3ddeb4d8..b4e2ed2273 100644 --- a/src/flag.rs +++ b/src/flag.rs @@ -187,12 +187,15 @@ pub enum ContextStatus { pub enum ContextVerb { Stop = 1, Unstop = 2, + Interrupt = 3, ForceKill = usize::MAX, } impl ContextVerb { pub fn try_from_raw(raw: usize) -> Option { Some(match raw { 1 => Self::Stop, + 2 => Self::Unstop, + 3 => Self::Interrupt, usize::MAX => Self::ForceKill, _ => return None, })