pipe() ã¨ã socketpair() ã¨ãè²ã æ¹æ³ã¯ãããã©ãç´ ç´ã« IO::Pipe 使ã£ã¨ãã¨ç°¡å便å©ãã³ã¢ã¢ã¸ã¥ã¼ã«ã§ããã use strict; use warnings; use IO::Pipe; my $pipes = []; my $children = []; for my $i (1..10) { push @$pipes, my $pipe = IO::Pipe->new; my $pid = fork; if ($pid) { # parent $pipe->reader; push @$children, $pid; next; } # child die $! unless defined $pid; $pipe->writer; print {$pipe} "pid: $$, index: $i\n"; exit; } for my $pid (@$
{{#tags}}- {{label}}
{{/tags}}