On Fri, Oct 28, 2005 at 08:16:37AM -0500, Albert Chin wrote:
> On Thu, Oct 27, 2005 at 09:00:50AM -0500, Albert Chin wrote:
> > On Thu, Oct 27, 2005 at 09:55:46AM -0400, Daniel Veillard wrote:
> > > On Thu, Oct 27, 2005 at 07:51:34AM -0500, Albert Chin wrote:
> > > > On Thu, Oct 27, 2005 at 06:07:33AM -0400, Daniel Veillard wrote:
> > > > > > Once I run the xmlIO test manually, the terminal window hangs after
> > > > > > the above command and the process exits. I don't see this behavior 
> > > > > > on
> > > > > > Solaris, Tru64 UNIX, IRIX, HP-UX, or Redhat Linux.
> > > > > > 
> > > > > > Any ideas?
> > > > > 
> > > > >   What fd number was used to build the buffer ?
> > > > 
> > > > n_fd: 0
> > > > fd: 0
> > > 
> > >   So apparently AIX dislikes when a child process might close its stdin
> > > descriptor ... maybe a #ifndef AIX is in order and pass -1 instead in that
> > > case...
> > 
> > I changed the for loop so n_fd started with 1 and encountered the same
> > hang. I'll try to look into it some more.
> 
> The following sample problem, when run on AIX, duplicates the hang:
>   #include <stdio.h>
>   #include <unistd.h>
> 
>   void
>   main (void) {
>     char *buffer;
> 
>     write (0, buffer, 0);
>   }

  Dohh, that sounds a serious AIX bug ...

> The patch below to xmlIO.c works around this AIX oddity.

  Okidoc, applied,

    thanks !

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to