This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re-entrancy problems


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]