hdiutil attach fails if STDIN is closed

Originator:robnapier
Number:rdar://14711754 Date Originated:12-Aug-2013 10:19 AM
Status:Duplicate/14480462 Resolved:13-Aug-2013 07:39 PM
Product:OS X Product Version:
Classification: Reproducible:
 
Summary:

   In 10.9, if stdin is closed, then hdiutil attach fails with the message "Killed: 9." This worked in previous versions of OS X. This breaks daemonized programs that call hdiutil.

Steps to Reproduce:

   hdiutil attach <dmg>.dmg <&-

Expected Results:

   Should attach DMG

Actual Results:

   The following is printed to the terminal:

      Killed: 9

   The following is output to Console:

      8/12/13 10:15:00.393 AM diskimages-helper[56801]: ERROR: couldn't connect to framework.
      8/12/13 10:15:00.394 AM diskimages-helper[56801]: DIHelper: setupConnectionToFrameworkWithUUID: failed

   Crash log attached.

Regression:

   Yes. This has been tested successfully on 10.4 - 10.8.

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!