• 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: PreferencePane for daemon. Zombie fest.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PreferencePane for daemon. Zombie fest.


  • Subject: Re: PreferencePane for daemon. Zombie fest.
  • From: Thaddeus Cooper <email@hidden>
  • Date: Mon, 27 Jun 2005 10:38:48 -0700

Ummm I thought forking was now considered evil...

http://developer.apple.com/documentation/MacOSX/Conceptual/ BPSystemStartup/index.html

--Thaddeus O. Cooper
(email@hidden)

On Jun 27, 2005, at 1:06 AM, Emilian Bold wrote:

Hy,

I'm working on a Preference Pane for a simple daemon process. I run it
with AuthorizationExecuteWithPrivileges and the process forks and runs
as a daemon.

The problem is that if I try to kill the process from the preference
pane, I get a zombie process. Of course, I don't make a wait() on it
so there goes the zombie thing.

This happens only if I launch and close the daemon from the same
preference pane. Probably the parent of the daemon becomes the
pref.pane and the parent should do some wait-ing.

I'm not quite sure about the proper way to handle this. If I quite the
system preferences, the zombie goes away (of course).

So, how should I do this ? It's a little odd to keep track of
situations like: did I launch it, was it lanched before, etc.

Basically a nice way to launch/kill daemon processes whould be nice
with AEWP. I have no control over the daemon process so I cannot
change that.

As a note, I'm also having some problem with mainViewDidLoad, which is
aparently never called.

Regards,
Emilian Bold

--
Please do not send me attachments without archiving them first with zip.
Try to use HTML or PDF instead of Word DOC Files. Not everybody has one.
Use reply and not new message when answering to an email of mine.
iBook/PPC G4 user since March 2005.


Emilian Bold
+40 740235562 (orange)
web.info.uvt.ro/~fierarul/typo3/

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


This email sent to email@hidden


_______________________________________________ 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
  • Prev by Date: Re: Convert PICT to NSImage
  • Next by Date: Re: Moving other application windows
  • Previous by thread: PreferencePane for daemon. Zombie fest.
  • Next by thread: Is there an Open Source SIP Client that runs under Cocoa?
  • Index(es):
    • Date
    • Thread