<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>読書ノート</anon>
  </categories>
  <description>fork(2)して子プロセスを作成できるお。 実行中のプロセスをコピーして新しいプロセスを作成できるのだ。 子プロセスは親プロセスのメモリのコピーであるため、 親プロセスが開いているファイルディスクリプタも同様に引き継ぐ。 というか、同じプロセスを参照しているのだ。子プロセスのびっくりする例 if fork puts &quot;entered the if block&quot; else puts &quot;entered the else block&quot; end これ実行したらこうなるのよ。 $ ruby argv.rb entered the if block entered the else blockなぜかとい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130429%2F1367243511&quot; title=&quot;プロセスは子プロセスを作れる - by shigemk2&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>http://tatsu-zine.com/images/books/87/cover_s.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-04-29 22:51:51</published>
  <title>プロセスは子プロセスを作れる</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20130429/1367243511</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
