Date: Sat, 20 Aug 2005 03:53:35 -0500 From: "R. Tyler Ballance" <tyler@tamu.edu> To: "R. Tyler Ballance" <tyler@tamu.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: pthread functions swallowing stdout, and stderr? Message-ID: <96AE9ABD-3A71-4777-B808-DB5D472C2FB3@tamu.edu> In-Reply-To: <64E87984-E173-4637-96AC-84BE7ABB60B1@tamu.edu> References: <64E87984-E173-4637-96AC-84BE7ABB60B1@tamu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry everybody for the extra crap in your inboxes; I was forgetting to add -lpthread to the LDFLAGS in the Makefile for the launchctl client.... Shouldn't gcc warn me against this? Oh well, false alarm, thanks reffie! Cheers, -R. Tyler Ballance On Aug 20, 2005, at 3:23 AM, R. Tyler Ballance wrote: > Howdy, I'm working on my SoC project, where one of the important, > yet broken, functions is being called from pthread_once() > > I have printf()'s before the pthread_once() call to help me debug, > and printf()'s after the pthread_once() call, but the function that > is called in pthread_once() has printf()'s inside it that never > output to stdout :/ > > Here are some links in case I'm not making sense: > http://perforce.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/ > soc2005/launchd/liblaunch.c&REV=7 > > The function that calls pthread_once() is launch_msg() on line 692, > the pthread_once() calls launch_client_init() on line 119. > > Nothing from within launch_client_init() gets output to the > terminal, while the printfs in launch_msg() before and after the > launch_client_init() call are both output.... > > > > Any tips? :/ > > Cheers, > > -R. Tyler Ballance > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96AE9ABD-3A71-4777-B808-DB5D472C2FB3>