• 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
kIOMessageSystemWillRestart not received in my daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kIOMessageSystemWillRestart not received in my daemon


  • Subject: kIOMessageSystemWillRestart not received in my daemon
  • From: Martin Bestmann <email@hidden>
  • Date: Fri, 2 Jun 2006 18:08:52 +0200

Hi,

I need to find out if my daemon was launched after a restart or during the normal install. Basically I need to now if a machine was
restarted. I thought IORegisterForSystemPower would do this but I do not get the kIOMessageSystemWillRestart message.


Here is my code that registers for the notification.

gRootPort=IORegisterForSystemPower (0,&notify,SystemPowerChangedCallback,&anIterator);
if (gRootPort) CFRunLoopAddSource(CFRunLoopGetCurrent (),IONotificationPortGetRunLoopSource(notify),kCFRunLoopDefaultMode);


I do get kIOMessageCanSystemSleep when the system is put to sleep.

Would user land app get kIOMessageSystemWillRestart messages?

Thanks,

Martin
_______________________________________________________
Martin Bestmann Pole Position Software GmbH
Phone: +49-9134-9942-0 Weingasse 26
Fax: +49-9134-997911 91077 Neunkirchen am Brand
e-mail: email@hidden Germany
Web: http://www.poleposition-sw.com


_______________________________________________
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


  • Prev by Date: Re: StartupItems
  • Next by Date: Re: StartupItems
  • Previous by thread: Re: Behavior of "less" on different systems
  • Next by thread: Fwd: Re: GNU-Darwin: missing code in Darwin
  • Index(es):
    • Date
    • Thread