mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: sean finney <seanius@seanius.net>
To: Ulrich Drepper <drepper@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: problem opening multiple pipes with pipe(2) in 2.4.1[78]
Date: Tue, 22 Oct 2002 00:39:25 -0400	[thread overview]
Message-ID: <20021022003925.A15745@sccs.swarthmore.edu> (raw)
In-Reply-To: <3DB4B517.1070906@redhat.com>; from drepper@redhat.com on Mon, Oct 21, 2002 at 07:16:55PM -0700

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]

On Mon, Oct 21, 2002 at 07:16:55PM -0700, Ulrich Drepper wrote:
> The fault is entirely yours.  You're not allowed to look at errno unless
> a function, which is defined to modify error on failure, is reporting it
> failed.  Both pipe() calls work just fine and errno has some random
> value which happens to be ESPIPE for you.  Read the standard.

right.  the perror() giving nonsensical results wasn't the cause of my
problem of course, i was just trying to use it to find out why the pipe
didn't seem to work.  turns out that i missed the forest for the trees;
the pipe was being opened for writing from the wrong end...

(as a side note, the code in question was written on a solaris box, and
it seems to Just Work in the wrong direction there, go fig.)

thanks
--sean

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-10-22  4:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-22  1:32 sean finney
2002-10-22  2:16 ` Ulrich Drepper
2002-10-22  4:39   ` sean finney [this message]
2002-10-22 12:43     ` Doug McNaught
2002-10-22 13:23       ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021022003925.A15745@sccs.swarthmore.edu \
    --to=seanius@seanius.net \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®