From fce6e8b50c7b4d948abb870f34adc8d3a778ea4f Mon Sep 17 00:00:00 2001 From: david942j Date: Mon, 5 Aug 2024 17:34:05 +0000 Subject: [PATCH] Suppress warning of deprecated Process::Status#>> --- lib/seccomp-tools/dumper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seccomp-tools/dumper.rb b/lib/seccomp-tools/dumper.rb index a244f0e..d12943b 100644 --- a/lib/seccomp-tools/dumper.rb +++ b/lib/seccomp-tools/dumper.rb @@ -101,7 +101,7 @@ def wait_syscall child, status = Process.wait2 cont = true # TODO: Test if clone / vfork works - if [Ptrace::EVENT_CLONE, Ptrace::EVENT_FORK, Ptrace::EVENT_VFORK].include?(status >> 16) + if [Ptrace::EVENT_CLONE, Ptrace::EVENT_FORK, Ptrace::EVENT_VFORK].include?(status.to_i >> 16) # New child launched! # newpid = SeccompTools::Ptrace.geteventmsg(child) elsif status.stopped? && status.stopsig & 0x80 != 0