Re: Amanda backup problem on OpenBSD 4.5

2009-09-13 Thread Philip Guenther
On Thu, Sep 10, 2009 at 1:01 PM, Dustin J. Mitchell wrote: > On Thu, Sep 10, 2009 at 2:29 PM, Philip Guenther wrote: >> 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 visib

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Dustin J. Mitchell
On Thu, Sep 10, 2009 at 2:29 PM, Philip Guenther wrote: > It happens at initialization time of libpthread and is undone at exit > and exec. B It applies to all fds. B There is no manpage, as it's not > (supposed to be) application visible. OK, so basically this is an OpenBSD/pthread bug. I'm stil

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Philip Guenther
On Thu, Sep 10, 2009 at 11:13 AM, Dustin J. Mitchell wrote: > On Thu, Sep 10, 2009 at 12:34 PM, Michael Burk 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

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Dustin J. Mitchell
On Thu, Sep 10, 2009 at 12:34 PM, Michael Burk wrote: >> Does newer Amanda use threads? With pthread, stdio will be silently >> changed to _non_ blocking. Wait, what?! When does this happen? At exec? And does it just apply to fd's 0-2? Can you point me to a manpage? Dustin (michael and stuart

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread HÃ¥kan Kvist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Burk wrote the following lines on 09/10/2009 06:58 PM: > If pthreads is the issue, then I have two questions: > 1) is the behavior of changing stdio to non_blocking when using pthreads > unique to OpenBSD? > 2) why would this call fix the probl

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Stuart Henderson
On 2009-09-10, Michael Burk wrote: > It links with libpthread. > > I am told that on the client side it uses a single thread. > Would that make a difference? That is exactly the problem then. Just linking with libpthread is enough, for userland threading to work it has to use non-blocking FDs and

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Michael Burk
If pthreads is the issue, then I have two questions: 1) is the behavior of changing stdio to non_blocking when using pthreads unique to OpenBSD? 2) why would this call fix the problem: fcntl(datafd, F_GETFL, 0); does that have other side effects? Thanks, Michael On Thu, Sep 10, 2009 at 10

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Michael Burk
It links with libpthread. I am told that on the client side it uses a single thread. Would that make a difference? Also, I forgot to include a link to the *very* long thread on the Amanda list discussing this problem: http://archives.zmanda.com/amanda-archives/viewtopic.php?t=4763&sid=f8645198786

Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Stuart Henderson
On 2009-09-10, Michael Burk wrote: > We have been working for a couple weeks with the Amanda developers to get > their latest release working on OpenBSD 4.5. Amanda stopped working with > OpenBSD somewhere around version 2.5.1 (3 years ago). We've been focusing on > a failure in the dump process o