View Single Post
  #8  
Old 04-11-2007, 11:22 PM
billcole billcole is offline
Registered User
 
Join Date: Apr 2007
Posts: 2
stderr != failure

Emitting a message on stderr is not necessarily an indication of failure. If you are actually running /usr/bin/hdiutil with system() or some other sort of callout, then the right check for success or failure would be the return code, not whether stderr gets some text. I can't speak to all cases, but at least in my case hdiutil emits a message on stderr even as the 'attach' actually succeeds (a disk device node is created) and hdiutil returns a zero (success) return code.
Reply With Quote