Skip to content

Commit b8723fb

Browse files
committed
Add a note for $proc.kill
SIGHUP is likely not what most people want. Or maybe it is… See this discussion: https://irclog.perlgeek.de/perl6/2017-09-02#i_15104886
1 parent 5495e14 commit b8723fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Proc/Async.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ standard output and error handles, and optionally write to its standard input.
4141
whenever signal(SIGTERM) {
4242
once {
4343
say ‘Signal received, asking the process to stop’;
44-
$proc.kill; # send SIGHUP
44+
$proc.kill; # sends SIGHUP, change appropriately
4545
whenever signal($_) {
4646
say ‘Kill it!’;
4747
$proc.kill: SIGKILL
@@ -50,7 +50,7 @@ standard output and error handles, and optionally write to its standard input.
5050
}
5151
whenever Promise.in(10) {
5252
say ‘Timeout. Asking the process to stop’;
53-
$proc.kill; # send SIGHUP
53+
$proc.kill; # sends SIGHUP, change appropriately
5454
whenever Promise.in(2) {
5555
say ‘Timeout. Forcing the process to stop’;
5656
$proc.kill: SIGKILL

0 commit comments

Comments
 (0)