<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoshifumi1975</author_name>
  <author_url>https://blog.hatena.ne.jp/yoshifumi1975/</author_url>
  <blog_title>yoshifumi1975's diary</blog_title>
  <blog_url>https://yoshifumi.hateblo.jp/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>CentOS</anon>
  </categories>
  <description>1つの親プロセスとたくさんの子プロセスという構成。親プロセスに SIGTERM を送ると、すべての子プロセスをきれいに終了させた後で終了するようにシグナルハンドラを追加したサンプル。 my_prefork_signal.c シグナルハンドラ付きのソース #include &lt;stdio.h&gt; #include &lt;string.h&gt; #include &lt;apr_hash.h&gt; #include &lt;sys/types.h&gt; #include &lt;unistd.h&gt; #include &lt;sys/wait.h&gt; #include &lt;signal.h&gt; #define MAX_CHILDREN 16 //子…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshifumi.hateblo.jp%2Fentry%2F20090320%2Fp1&quot; title=&quot; C言語でprefork型のデーモンを書く(2): 非デーモン prefork シグナルハンドラ付き - yoshifumi1975&amp;#39;s diary&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>2009-03-20 00:00:00</published>
  <title> C言語でprefork型のデーモンを書く(2): 非デーモン prefork シグナルハンドラ付き</title>
  <type>rich</type>
  <url>https://yoshifumi.hateblo.jp/entry/20090320/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
