X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlipc.pod;h=e6873045109abbd0d9fb058d6e8fc3ecb6a9065d;hb=202975e60ee076fd8796877b28774137051a97c4;hp=2f99d10e23237cd092aa5ea51976f466bcc85114;hpb=f83494b92f81a6b8992c117c91ba66bb35f6a26a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlipc.pod b/pod/perlipc.pod index 2f99d10..e687304 100644 --- a/pod/perlipc.pod +++ b/pod/perlipc.pod @@ -58,7 +58,7 @@ You may also choose to assign the strings C<'IGNORE'> or C<'DEFAULT'> as the handler, in which case Perl will try to discard the signal or do the default thing. -On most UNIX platforms, the C (sometimes also known as C) signal +On most Unix platforms, the C (sometimes also known as C) signal has special behavior with respect to a value of C<'IGNORE'>. Setting C<$SIG{CHLD}> to C<'IGNORE'> on such a platform has the effect of not creating zombie processes when the parent process fails to C @@ -276,7 +276,7 @@ same effect as opening a pipe for reading: While this is true on the surface, it's much more efficient to process the file one line or record at a time because then you don't have to read the -whole thing into memory at once. It also gives you finer control of the +whole thing into memory at once. It also gives you finer control of the whole process, letting you to kill off the child process early if you'd like. @@ -307,8 +307,7 @@ To catch it, you could use this: Both the main process and any child processes it forks share the same STDIN, STDOUT, and STDERR filehandles. If both processes try to access -them at once, strange things can happen. You'll certainly want to any -stdio flush output buffers before forking. You may also want to close +them at once, strange things can happen. You may also want to close or reopen the filehandles for the child. You can get around this by opening your pipe with open(), but on some systems this means that the child process cannot outlive the parent. @@ -473,7 +472,6 @@ Here's an example of using open2(): use FileHandle; use IPC::Open2; $pid = open2(*Reader, *Writer, "cat -u -n" ); - Writer->autoflush(); # default here, actually print Writer "stuff\n"; $got = ; @@ -1159,7 +1157,7 @@ server. (Under Unix, ports under 1024 are restricted to the superuser.) In our sample, we'll use port 9000, but you can use any port that's not currently in use on your system. If you try to use one already in used, you'll get an "Address already in use" -message. Under Unix, the C command will show +message. Under Unix, the C command will show which services current have servers. =item Listen