Skip to content

Commit

Permalink
Suppress warning of deprecated Process::Status#>>
Browse files Browse the repository at this point in the history
  • Loading branch information
david942j committed Aug 5, 2024
1 parent 12d21bf commit fce6e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/seccomp-tools/dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fce6e8b

Please sign in to comment.