P5-perl-unsafe-signals

Jul 20, 2023

Allow unsafe handling of signals in selected blocks

In Perl 5.8.0 the so-called “safe signals” were introduced. This means that Perl no longer handles signals immediately but instead “between opcodes”, when it is safe to do so. The earlier immediate handling easily could corrupt the internal state of Perl, resulting in mysterious crashes.

It’s possible since perl 5.8.1 to globally disable this feature by using the PERL_SIGNALS environment variables as specified in “PERL_SIGNALS” in perlrun; but there’s no way to disable it locally, for a short period of time. That’s however something you might want to do, if, for example, your Perl program calls a C routine that will potentially run for a long time and for which you want to set a timeout.

This module therefore allows you to define UNSAFE_SIGNALS blocks in which signals will be handled “unsafely”.



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler