Date: Mon, 28 Oct 1996 10:09:58 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: joerg_wunsch@uriah.heep.sax.de Cc: freebsd-current@FreeBSD.org Subject: Re: Strange bug related to fstat() Message-ID: <199610281809.KAA17366@bubba.whistle.com> In-Reply-To: <199610280659.HAA02709@uriah.heep.sax.de> from J Wunsch at "Oct 28, 96 07:59:46 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> > Within a little background daemon, the system() command is used > > to execute a command looking something like this: > > > > system("tar cf - file1 file2 | gzip -cf | uuencode files > output"); > > Btw., would it work using `tar czf -' instead? Yes... but the weirdness remains unexplained. > > The only other possibilities seem to be a bug in /bin/sh or the > > kernel. As you can see, I need a little hint as to how to pursue > > this one... > > Try to ktrace this and look what the fstat() is getting as its file > descriptor. I did add code to print out fileno(stdin) right before the fstat(), and it was zero, as expected... -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610281809.KAA17366>