<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lufiabb</author_name>
  <author_url>https://blog.hatena.ne.jp/lufiabb/</author_url>
  <blog_title>Plan 9とGo言語のブログ</blog_title>
  <blog_url>https://blog.lufia.org/</blog_url>
  <categories>
    <anon>macOS</anon>
  </categories>
  <description>macOS 10.15では、execv(2)する前に実行していたプロセスの実行ファイルが削除されていると、execv(2)がENOENTを返す場合があります。どういうことかというと、 a.outを実行 a.out実行中にa.outファイルを削除(削除できる) a.outがfork(2)して親は子プロセスを待つ 子プロセスがexecv(2)でa.outとは別のプログラム(例えば/usr/bin/vm_stat)になる ENOENTエラーが返る この動作は、発生する環境では常に発生しますが、しない場合は全く発生しないようです。現在確認できた環境だと、以下のような結果になりました。再現する場合としな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.lufia.org%2Fentry%2F2019%2F11%2F29%2F135610&quot; title=&quot;macOS 10.15 Catalinaでexecvが失敗する - Plan 9とGo言語のブログ&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>2019-11-29 13:56:10</published>
  <title>macOS 10.15 Catalinaでexecvが失敗する</title>
  <type>rich</type>
  <url>https://blog.lufia.org/entry/2019/11/29/135610</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
