• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem unmounting and ejecting a disk image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem unmounting and ejecting a disk image


  • Subject: Re: problem unmounting and ejecting a disk image
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 23 May 2005 11:27:37 +0100

On 14 May 2005, at 01:56, Ken Victor wrote:

i'm having some difficulty successfully unmounting and ejecting a volume that is a mounted disk image in 10.2.8. on 10.3.9, NSWorkspace unmountAndEjectDeviceAtPath works fine, but on 10.2.8 this seems to hang.

so now i can successfully unmount and eject the volume as follows:
        system( "diskutil eject \"/Volumes/mountedVolumeName\"")
however, when i do this, i get the following in the console window:

May 13 17:28:20 KensDualG4 /sbin/autodiskmount[259]: Someone (pid = (1327)) isn't responding to a sent disk acknowledgement request. That client has been disconnected.

May 13 17:28:20 KensDualG4 /sbin/autodiskmount[259]: (autodiskmount.tproj/DiskArbitrationServerMain.c:4450) mach_msg failed: {0x10004003} (ipc/rcv) timed out

and it takes about 20 seconds before it actually times out. note that the process that it is complaining about as not responding (1327) is my process!

Hi Ken,

I'm just guessing, but are you (by any chance) doing your system() call from the main thread?  If so, run it on a separate thread and see if that works.

Kind regards,

Alastair.

--

http://www.alastairs-place.net



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >problem unmounting and ejecting a disk image (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: RAM Location and Size in 64bits Machines
  • Next by Date: [ANN] piratewatch.org developer community
  • Previous by thread: problem unmounting and ejecting a disk image
  • Next by thread: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • Index(es):
    • Date
    • Thread