This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Capitalize "SysV" correctly
[perl5.git]
/
pod
/
perlipc.pod
diff --git
a/pod/perlipc.pod
b/pod/perlipc.pod
index
de6ba58
..
416ded5
100644
(file)
--- a/
pod/perlipc.pod
+++ b/
pod/perlipc.pod
@@
-126,7
+126,7
@@
signal handlers like this:
sub REAPER {
$waitedpid = wait;
sub REAPER {
$waitedpid = wait;
- # loathe
s
ysV: it makes us not only reinstate
+ # loathe
S
ysV: it makes us not only reinstate
# the handler, but place it after the wait
$SIG{CHLD} = \&REAPER;
}
# the handler, but place it after the wait
$SIG{CHLD} = \&REAPER;
}
@@
-145,7
+145,7
@@
or better still:
while (($child = waitpid(-1,WNOHANG)) > 0) {
$Kid_Status{$child} = $?;
}
while (($child = waitpid(-1,WNOHANG)) > 0) {
$Kid_Status{$child} = $?;
}
- $SIG{CHLD} = \&REAPER; # still loathe
s
ysV
+ $SIG{CHLD} = \&REAPER; # still loathe
S
ysV
}
$SIG{CHLD} = \&REAPER;
# do something that forks...
}
$SIG{CHLD} = \&REAPER;
# do something that forks...
@@
-933,7
+933,7
@@
go back to service a new client.
while ((my $pid = waitpid(-1,WNOHANG)) > 0 && WIFEXITED($?)) {
logmsg "reaped $waitedpid" . ($? ? " with exit $?" : '');
}
while ((my $pid = waitpid(-1,WNOHANG)) > 0 && WIFEXITED($?)) {
logmsg "reaped $waitedpid" . ($? ? " with exit $?" : '');
}
- $SIG{CHLD} = \&REAPER; # loathe
s
ysV
+ $SIG{CHLD} = \&REAPER; # loathe
S
ysV
}
$SIG{CHLD} = \&REAPER;
}
$SIG{CHLD} = \&REAPER;
@@
-1115,7
+1115,7
@@
to be on the localhost, and thus everything works right.
while (($waitedpid = waitpid(-1,WNOHANG)) > 0) {
logmsg "reaped $waitedpid" . ($? ? " with exit $?" : '');
}
while (($waitedpid = waitpid(-1,WNOHANG)) > 0) {
logmsg "reaped $waitedpid" . ($? ? " with exit $?" : '');
}
- $SIG{CHLD} = \&REAPER; # loathe
s
ysV
+ $SIG{CHLD} = \&REAPER; # loathe
S
ysV
}
$SIG{CHLD} = \&REAPER;
}
$SIG{CHLD} = \&REAPER;