• 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: Distributed objects: connecting to a process running as root?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed objects: connecting to a process running as root?


  • Subject: Re: Distributed objects: connecting to a process running as root?
  • From: email@hidden
  • Date: Mon, 1 May 2006 10:50:06 +1000

I just ran another experiment. I created a launchd .plist for my test server and started it using 'sudo launchctrl load ...'. The server was running as 'nobody'. My test client could connect, get the vended object, and execute code in the server.

I then restarted my computer, letting launchd start an instance of my server at boot time. I again ran my client and it had no problem connecting with the server.

To be thorough, I should probably repeat this experiment as a StartupItem in 10.3, but so far I'm not seeing any limitations -- at least not in 10.4 and launchd.

Curious. Are you using Mach messaging?

As someone else noted, you cannot send Mach messages between Mach namespaces, and the boot namespace is distinct from that of the logged in user(s). You also get a new namespace if you login via SSH, I think, so try testing your app that way as well.

My only other thought, not being that familiar with launchd, is that perhaps your server isn't really being launched in the boot namespace at all, but your user's? Can you connect to the [same] server from two different logged in users (i.e. using fast user switching)?

Wade Tregaskis

    ICQ: 40056898
    AIM, Yahoo & Skype: wadetregaskis
    MSN: email@hidden
    iChat & email: email@hidden
    Jabber: email@hidden
    Google Talk: email@hidden

    http://homepage.mac.com/wadetregaskis/

-- Sed quis custodiet ipsos custodes?


_______________________________________________ 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
  • Follow-Ups:
    • Re: Distributed objects: connecting to a process running as root?
      • From: James Bucanek <email@hidden>
References: 
 >Re: Distributed objects: connecting to a process running as root? (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Creating alias to app for PDFService
  • Next by Date: Drag and drop not working from NSMatrix subclass
  • Previous by thread: Re: Distributed objects: connecting to a process running as root?
  • Next by thread: Re: Distributed objects: connecting to a process running as root?
  • Index(es):
    • Date
    • Thread