Skip to content

Commit

Permalink
Also allow bare int's to be passed to .signal
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 14, 2014
1 parent b36c9eb commit 9103f96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion S17-concurrency.pod
Expand Up @@ -1059,8 +1059,8 @@ Finally, if your process as gong awry, you can stop it with the C<.kill>
method:

$proc.kill; # sends HUP signal to process

$proc.kill("SIGINT"); # send INT signal
$proc.kill(1); # if you just know the signal number on your system

The parameter should be something that is acceptable to the Kernel.signal
method.
Expand Down
6 changes: 3 additions & 3 deletions S28-special-names.pod
Expand Up @@ -264,9 +264,9 @@ ordinal number matches the lower level signal value.

=item signal

my $num = $*KERNEL.signal(SIGHUP);

my $num = $*KERNEL.signal("HUP"); # or "SIGHUP"
my $int = $*KERNEL.signal(SIGHUP);
my $int = $*KERNEL.signal("HUP"); # or "SIGHUP"
my $int = $*KERNEL.signal(1); # just pass through for bare Ints

Convert the given C<Signal> Enum value, or a string representing that signal,
to the internal value that this C<Kernel> uses to send to a process.
Expand Down

0 comments on commit 9103f96

Please sign in to comment.