site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=ioruZogdBbxDMENNjoNe/XV5hTZE9RYV70ywBj49VsE=; b=tkeXz56qxyPZ7Gzwb+1fZ4JArMyFNU/HwO81WkavdWhnZ/aqBDTXWe8iLkNBxpwrs+ +5XH0CNQuUW2FjEJF0fm0CK7NYQxCT/AZ7H0W8VWstbXoRrZzKCZYLQlXo/aIwRNxWZM tX9VuV87X4undFaQDJ83Tc+1XyFMojm5EmIoc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=r6X3xdKu3XB8Gqp62rC+I3ZVzLCo3LMFAVInkQqRSf3Ce80qhjRROfBWKUr+TK7bxq 9p06J7pGFZxUoSf1vDhG7MkwM1k+GKPZLJT3gv24ErjvQHJUTioRcxT8ToGMkkUxLIRc tnsykFJcOkMRfaaqbKw+/UB/RCKjQlthxhozE= On Sep 13, 2008, at 05:25 , Brian Bergstrand wrote: Jason _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com No matter how your app terminates, if you leave dangling resources they will be cleaned up for you by the kernel. There may be a few exceptions, but Mach ports (which is what IOKit handles are) are not one of them. I thought as much, but it seems strange to me that in this case, the computer will no longer go to sleep due to being idle. I've tested it with a simple terminal program. If I interrupt the run loop (^C for example or SIGTERM) and don't call IODeregisterForSystemPower() the computer simply will not sleep again until it's been rebooted. If anyone else could test this, I'd really appreciate it... it seems like a bug but I only have my hardware at the moment to test on and there may be something wrong with that. smime.p7s
participants (1)
-
Jason Coco