<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>fork-exec において 複数の子プロセスを生み出して、常に一定のプロセスを起動させるにはどのようにすれば良いだろうか。 いまいちイディオム的なのがよくわからなかったので、必死こいて作ってみた。 子プロセスが exec するプログラム（sleep というファイル名にコンパイル） 1 // $Id:$ 2 #include &lt;stdio.h&gt; 3 #include &lt;stdlib.h&gt; 4 #include &lt;unistd.h&gt; 5 6 // 引数秒 sleep するだけ。 7 int main(int argc, char* argv[]) { 8 if(argc == 1) { 9 pu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20080513%2F1210699757&quot; title=&quot;プロセスを監視するプロセス？ - すがブロ&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-05-13 02:29:17</published>
  <title>プロセスを監視するプロセス？</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20080513/1210699757</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
