Skip to content
Yuki Kimoto - SPVM - Perl Club edited this page Jun 1, 2023 · 2 revisions

How to set the PIPE signale to IGNORE

# Perl
$SIG{PIPE} = 'IGNORE';

# SPVM
use Sys::Signal;
use SYS::Signal::Constant as SIGNAL;

Sys::Signal->signal(SIGNAL->SIGPIPE, Sys::Signal->SIG_IGN);
Clone this wiki locally