Re-entrancy problems

Mats Liljegren
Fri Dec 1 06:33:00 GMT 2000

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!


More information about the Newlib mailing list