Re: Anything I should know about thread safety and fprintf?
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:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=h3QnrNuWKti5Njyzs9V3ZNGgBx30w9A+hSbPj2fuuus=; b=ObGZhqL2lTwQRxwC6J6996MGp6RaMyZWF2EiXeaj5ZVqgwQkg3twahRwxBhLlW88tUpwzHCBbtRFOnK9PUaTt4IAW/RTuHkfkf93EAHej5IZclYSOu7LmgfQYvzjplDsTCV7HL048VuEXaNVgGaHC9Q0nosMO6FcTbfWOmTrY54= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=b2DbKIR4ZF83WgSc2Q062kKK+FwJwEBilwQrZaa1SdrdgQYzGIbAjqAAJfYwpEpdvuUeN7ikiAuIf0+y9EGLLKTgR5i3f5PXPzb07avelEh+aemUNg1JVGmSEU9ne/+HovJIQJtzSbgJ0Hi09zRK5c7/xLK1E9UCh+OSLcsGJeI= On Jan 24, 2008 7:00 AM, Jordan K. Hubbard <jkh@apple.com> wrote:
On Jan 23, 2008, at 5:02 PM, Terry Lambert wrote:
The only real way to talk to the system logging facility is via syslog()
Which is how you should generate log messages only if you wish to use the deprecated, purely-for-backwards-compatibility interface. :-)
Please use asl(3) for all new code. It's a far better, more flexible interface.
Ah. I thought the standard way of system logging was just fprintf(stderr, ... ). I still have no idea why I should be getting stuck in write() like that, but I've switched to asl and the problem seems to have magically disappeared... Thanks for the help, Jon _______________________________________________ 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
participants (1)
-
Jonathan del Strother