<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiratara</author_name>
  <author_url>https://blog.hatena.ne.jp/hiratara/</author_url>
  <blog_title>Pixel Pedals of Tomakomai</blog_title>
  <blog_url>https://hiratara.hatenadiary.jp/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>やってしまった、と言うのが正直なところです。 こんなコードを書きました。子プロセスを5個立ち上げて、それぞれの子プロセスに1〜5の数字を１つだけ印字してもらうだけの簡単なプログラムです。 use strict; use warnings; foreach(1 .. 5){ if(my $pid = fork()){ # 親プロセス # NOP }elsif(defined $pid){ # 子プロセス child($_); }else{ die &quot;sorry.&quot;; } } while(wait() &gt; 0){} exit(0); sub child{ my $num = shift; prin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20080113%2F1200190263&quot; title=&quot;fork()失敗談 - Pixel Pedals of Tomakomai&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-01-13 11:11:03</published>
  <title>fork()失敗談</title>
  <type>rich</type>
  <url>https://hiratara.hatenadiary.jp/entry/20080113/1200190263</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
