{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhogem.hatenablog.com%2Fentry%2F20100824%2F1282655602\" title=\" perl\u3067fork - \u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2010-08-24 22:13:22","provider_name":"Hatena Blog","width":"100%","categories":["perl"],"version":"1.0","height":"190","type":"rich","title":" perl\u3067fork","url":"https://hogem.hatenablog.com/entry/20100824/1282655602","author_name":"hogem","image_url":null,"blog_title":"\u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050","blog_url":"https://hogem.hatenablog.com/","description":"use warnings; use strict; my $pid = fork; if ($pid) { ## parant process } else { ## child process } waitpid($pid,0); waitpid\u3092\u3057\u306a\u304b\u3063\u305f\u3089\u3001\u5b50\u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u3063\u3066\u3044\u3066\u3082\u89aa\u30d7\u30ed\u30bb\u30b9\u306f\u5148\u306b\u7d42\u308f\u3063\u3066\u3057\u307e\u3046\u3002 \u6307\u5b9a\u3057\u305f\u6570\u3060\u3051fork my $max_process = 10; my @pids; for ( 1 .. $max_process ) { my $pid = fork; push @pids, $pid; die \"can't fork child process\" if\u2026","author_url":"https://blog.hatena.ne.jp/hogem/"}