unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile mailing list <bug-guile@gnu.org>, Detlev Zundel <dzu@denx.de>
Subject: Re: Problem with netcat
Date: Mon, 11 Apr 2011 13:36:22 -0400	[thread overview]
Message-ID: <87ei588zc9.fsf@netris.org> (raw)
In-Reply-To: <m3wrj1mcgu.fsf@unquote.localdomain> (Andy Wingo's message of "Mon, 11 Apr 2011 10:14:25 +0200")

Andy Wingo <wingo@pobox.com> wrote:
> I pushed a (sigaction SIGPIPE SIG_IGN) to (system repl repl), which
> should fix the issue.

Isn't this a bad idea?  SIGPIPE generally indicates that something went
wrong.  If we ignore it, important problems may go unnoticed.  To me,
this seems kind of like ignoring SIGSEGV to get around a memory access
to an unmapped area that would be inconvenient to prevent.

Furthermore, what happens if a REPL is started within a Guile process
that wants to install its own handler for SIGPIPE?

Why is a pipe being created here, anyway?  Why not just a socket?

     Best,
      Mark



  parent reply	other threads:[~2011-04-11 17:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03 21:23 Problem with netcat John Proctor
2011-04-04 21:16 ` Andy Wingo
2011-04-06 10:52   ` Detlev Zundel
     [not found]   ` <BANLkTimDrGF+3TQdXzwjQ-mWbUj1VMYA6g@mail.gmail.com>
2011-04-07 16:04     ` Detlev Zundel
2011-04-11  8:14       ` Andy Wingo
2011-04-11 14:32         ` Detlev Zundel
2011-04-11 17:35           ` John Proctor
2011-04-11 17:36         ` Mark H Weaver [this message]
2011-04-11 18:03           ` Andy Wingo
2011-04-13  9:08           ` Detlev Zundel

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=87ei588zc9.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=bug-guile@gnu.org \
    --cc=dzu@denx.de \
    --cc=wingo@pobox.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).