You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: capture_syscall.rb
    path of file: ./repos/cpf_cnpj/test/support
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "timeout"

module CaptureSyscall
  def capture_syscall
    exit_status = nil

    stdout, stderr = Timeout.timeout(1) do
      capture_subprocess_io do
    
  def capture_syscall
    exit_status = nil

    stdout, stderr = Timeout.timeout(1) do
      capture_subprocess_io do
        yield
        exit_status = $CHILD_STATUS.exitstatus
      end
    end

    [exit_status, stdout, stderr]
  end