public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] tools/netconsole: make a bit more robust and use ncb when possible
Date: Wed, 9 Sep 2009 10:15:04 -0400	[thread overview]
Message-ID: <200909091015.05454.vapier@gentoo.org> (raw)
In-Reply-To: <20090909132842.1B1F2832E8DE@gemini.denx.de>

On Wednesday 09 September 2009 09:28:42 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > On Friday 09 January 2009 04:38:22 Mike Frysinger wrote:
> > > The netcat utility likes to exit when it receives an empty packet (as
> > > it thinks this means EOF).  This can easily occur when working with
> > > command line editing as this behavior will be triggered when using
> > > backspace.  Or with tabs and command line completion.  Since the local
> > > ncb util does not have this "feature" and it supports broadcast udp,
> > > default to using that rather than netcat.
> >
> > ping ... afaik, it should still apply fine
> 
> Maybe. But I still don't like the patch. Now, with the distance of a
> few months, I think it should be split into two parts:
> 
> 1) "make a bit more robust"
> 
> I agree that this is kind of a bug fix; I think it can go in.

np

> 2) "use ncb when possible"
> 
> Here I really dislike the implementation of "when possible", which
> makes silent and undocumented assumptions about from which directory
> the script has to be run. I guess the "when possible" would almost
> always turn out to be false, so we might omit the patch alltogether,
> especially since it's also documented in "doc/README.NetConsole".
> 
> If we add it, we should follow standard UNIX philosophy and assume
> that you set your PATH accordingly to reach the tools you want to use.

since ncb is compiled whenever netconsole is enabled, and people typically use 
this script with netconsole enabled, "when possible" tends to be line up 
fairly often.  also, the broadcast aspect is pretty useful.  i guess i could 
make it search PATH, but the idea was to have things "just work" rather than 
forcing people to install random utils into their PATH.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090909/90db57e6/attachment.pgp 

  reply	other threads:[~2009-09-09 14:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-09  9:38 [U-Boot] [PATCH] tools/netconsole: make a bit more robust and use ncb when possible Mike Frysinger
2009-01-16  8:37 ` Wolfgang Denk
2009-01-16 19:07   ` Mike Frysinger
2009-01-21 20:13     ` Wolfgang Denk
2009-01-21 20:39       ` Mike Frysinger
2009-01-21 20:57         ` Wolfgang Denk
2009-01-21 21:06           ` Mike Frysinger
2009-09-09 12:46 ` Mike Frysinger
2009-09-09 13:28   ` Wolfgang Denk
2009-09-09 14:15     ` Mike Frysinger [this message]
2009-09-09 14:32       ` Wolfgang Denk
2009-09-09 14:54         ` Mike Frysinger
2009-09-09 16:20 ` [U-Boot] [PATCH 1/2 v2] tools/netconsole: make a bit more robust Mike Frysinger
2009-09-15 20:54   ` Wolfgang Denk
2009-09-09 16:20 ` [U-Boot] [PATCH 2/2 v2] tools/netconsole: use ncb automatically if available Mike Frysinger
2009-09-15 20:55   ` Wolfgang Denk

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=200909091015.05454.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /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