• 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: Question on using launchd from a C program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on using launchd from a C program


  • Subject: Re: Question on using launchd from a C program
  • From: Andrew White <email@hidden>
  • Date: Sat, 10 Jun 2006 11:19:21 +1000


Mike Kobb wrote:
Thanks for that!  Pretty interesting.

As it happens, since I really didn't want to introduce big Mac dependencies into the server code, I ended up writing a tiny little faceless background "helper" app that launches the server when it starts and quits it when it exits. Because it's a MacOS app and not a BSD daemon-type process like the server, I can add it to the Login Items, and that works beautifully for me. The helper reads a preference set by my prefs pane so it knows whether to launch the server when it starts or let the user do it manually...

As a stupid question, have you handled two unusual cases:

(1) There are multiple users logged in?

(2) What happens when a user logs in via ssh, independent of the normal display? The two possible problem cases here are logging in when no-one is logged in and having the display user log out while someone is still logged in via ssh.

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Question on using launchd from a C program
      • From: Paul Nelson <email@hidden>
References: 
 >Re: Question on using launchd from a C program (From: Paul Nelson <email@hidden>)
 >Re: Question on using launchd from a C program (From: Mike Kobb <email@hidden>)

  • Prev by Date: Re: Question on using launchd from a C program
  • Next by Date: kqueue - supported filesystems?
  • Previous by thread: Re: Question on using launchd from a C program
  • Next by thread: Re: Question on using launchd from a C program
  • Index(es):
    • Date
    • Thread