Sha256: 491467d0f44ac90f23b31599d493221aa134a421d32b7d6014d70c9a1aac1ace
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
module CZMQ module FFI # 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 of 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
czmq-ffi-gen-1.2.0 | lib/czmq-ffi-gen/signals.rb |
czmq-ffi-gen-1.1.2 | lib/czmq-ffi-gen/signals.rb |