<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fuki1234</author_name>
  <author_url>https://blog.hatena.ne.jp/fuki1234/</author_url>
  <blog_title>記録日記</blog_title>
  <blog_url>https://fuki1234.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>ブラウザから重い処理を走らせたい場合にCGIプロセスとは別にプロセスを作成して、そのプロセスに重い処理を任せ、CGIプロセスは画面表示して終わりといったプログラムを組んだとして。この場合にapacheを再起動した際に別に作ったプロセスも一緒に落ちてしまう問題がある。 if (my $pid = fork) { #親プロセスは画面表示して終わり。 } elsif (defined $pid) { #子プロセス $SIG{CHLD} = &quot;IGNORE&quot;; close(STDOUT); #重い処理 exec 'COMMAND parameter'; } else { #エラー処理 } perlで書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffuki1234.hatenadiary.org%2Fentry%2F20070216&quot; title=&quot;apacheから起動したプロセスを完全に切り離したい - 記録日記&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>2007-02-16 00:00:00</published>
  <title>apacheから起動したプロセスを完全に切り離したい</title>
  <type>rich</type>
  <url>https://fuki1234.hatenadiary.org/entry/20070216</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
