<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bamch0h</author_name>
  <author_url>https://blog.hatena.ne.jp/bamch0h/</author_url>
  <blog_title>bamchoh’s diary</blog_title>
  <blog_url>https://bamch0h.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>WindowsだとRubyのspawnメソッドでプロセスを作成すると親プロセスからは切り離されて、親プロセスが終了しても残り続けます。 これが便利な時もありますが、私のユースケースでは不便に働くことがありました。なので、今回は親子共々死んでもらいます。 以前に、「アプリケーションが終了するときに、子プロセスも終了させる方法」ということで、Go言語で実装した記事を投稿しました。 bamch0h.hatenablog.com こちらの焼き増し記事となります。ご了承を。 Ruby コード module Kernel32 require 'fiddle' require 'fiddle/import'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbamch0h.hatenablog.com%2Fentry%2F2023%2F09%2F18%2F005442&quot; title=&quot; WindowsでKernel#spawnで作った子プロセスを親プロセスが死ぬときに同時に死んでもらう - bamchoh’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>2023-09-18 00:54:42</published>
  <title> WindowsでKernel#spawnで作った子プロセスを親プロセスが死ぬときに同時に死んでもらう</title>
  <type>rich</type>
  <url>https://bamch0h.hatenablog.com/entry/2023/09/18/005442</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
