Sha256: d043d763bfd09cedcfdc28022817ab8b4134c4f54589ee4e640e3fab3dd6c931
Contents?: true
Size: 694 Bytes
Versions: 5
Compression:
Stored size: 694 Bytes
Contents
module CZMQ module FFI attach_function :zsys_handler_set, [:pointer], :void, blocking: true # This is used to disable CZMQ's signal handling so blocking calls can be # interrupted using Ctrl-C. module Signals module_function @default_handling_disabled = false # Disables default SIGINT/SIGTERM handling in CZMQ. # @return [void] def disable_default_handling FFI.zsys_handler_set(nil) @default_handling_disabled = true end # @return [Boolean] whether the CZMQ's default signal handling has been # disabled def default_handling_disabled? @default_handling_disabled end end end end
Version data entries
5 entries across 5 versions & 1 rubygems