| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
email@hidden writes:Well, daemon() does a fork() for you. So, it still could be aYes, it does. But from what you've said, at that point, it's called
fork()-related issue. Does your code not call daemon() when launched
as a startupitem?
within the startup context.
Just in case you can see anything obvious, my daemon looks like this:
Mach-O 'tool' created in Project Builder
linked to CoreFoundation and SystemConfiguration frameworks
calls daemon(0,0) on startup
creates a CFRunLoopSource and registers for console user notifications
via the SCDynamicStore
on login (console user change), attempts to run a Mach-O binary. I've
tried the following, all fail equally well :-)
- Launch Services (LPOpenFSRef)
- LaunchApplication
- system("open <path>")
- execl("<path>")
| References: | |
| >Re: open fails in daemon (From: Jim Magee <email@hidden>) | |
| >Re: open fails in daemon (From: "Steve Cox" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.