This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re-entrancy problems
- To: newlib <newlib at sources dot redhat dot com>
- Subject: Re-entrancy problems
- From: Mats Liljegren <mats dot liljegren at enea dot se>
- Date: Fri, 01 Dec 2000 15:57:47 +0100
- Organization: Enea Realtime AB
Hi all,
I'm having some problems, which might be re-entrancy problems somewhere.
This has to do with writes to stdout and stderr.
I have implemented the get_pid() function so that it will call the OS
asking for the current process ID.
I'm using Newlib 1.8.2 release on powerpc-eabi platform. I'm compiling
with GNU GCC 2.95.2.
1) When asking for line buffering of output (which is default, as far as
I understand), is this done per process?
2) Could one process destroy the output buffer for another process in
any situation? It is when starting or stopping processes multiple
processes "simultaneously" (i.e. within a short time interval) that I
loose characters.
3) When will get_pid() be used? Is there a need to tell Newlib that
there has popped up a new process?
Thanks in advance for any help!
Regards,
Mats