On Thu, Sep 10, 2009 at 11:13 AM, Dustin J. Mitchell <dus...@zmanda.com> wrote: > On Thu, Sep 10, 2009 at 12:34 PM, Michael Burk<bur...@gmail.com> wrote: >>> Does newer Amanda use threads? With pthread, stdio will be silently >>> changed to _non_ blocking. > > Wait, what?!
This is all behind the applications back, between the thread library and the kernel. Ideally it would be completely invisible to the application, but while the library can hide it from and single process, it can't hide it from other processes and there are problems with the threaded process forks and exits or execs. > When does this happen? At exec? And does it just apply to fd's 0-2? > Can you point me to a manpage? It happens at initialization time of libpthread and is undone at exit and exec. It applies to all fds. There is no manpage, as it's not (supposed to be) application visible. Philip Guenther