SPVM::Go::OS::Signal - Signal Manipulation
The Go::OS::Signal class in SPVM has methods to manipulate signals.
use Go::OS::Signal; use Sys::Signal::Constant as SIGNAL; use Sys; my $ch = Go->make(1); Go::OS::Signal->notify($ch, SIGNAL->SIGTERM); Sys->kill(SIGNAL->SIGTERM, Sys->process_id); my $ok = 0; my $signal = $ch->read(\$ok);
static method ignore : void ($signal : int);
Ignores the signal $signal.
See Sys::Signal::Constant about the values of signals.
static method notify : void ($channel : Go::Channel, $signal : int);
Creates a goroutine to read the sent signal and write it to the $channel.
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::Go, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Go
CPAN shell
perl -MCPAN -e shell install SPVM::Go
For more information on module installation, please visit the detailed CPAN module installation guide.