Mac OS 10.5.8 で動作するプログラムを入手しました。このプログラムは、イメージをマウントし、ブラウザ プラグインをインストールして、イメージを再度マウント解除するという連続的なサイクルを実行します。このプログラムを実行したままにしておくと、最終的に「フォーク: リソースが一時的に利用できません」というエラーが発生する状況になります。アクティビティ モニターでは、diskimages-helper と呼ばれる数百のプロセスが実行されていることがわかります。なぜこれが起こるのか、どうすれば回避できるのか誰か知っていますか? 以下は、プログラムの 1 サイクルで使用するコマンドです。
# First I remove the plugin
rm -rf "/Library/Internet Plug-Ins/my.plugin"
# If the mount exists I unmount it
hdiutil unmount [mount] -force
# If that doesnt work I detach the device
hdiutil detach [device] -force
# Then I mount the image
hdiutil mount [image]
# I install the plugin
installer -package [package] -target /
# Unmount
hdiutil unmount [mount] -force
# And if necessary detach
hdiutil detach [device] -force