Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: zhaolei@cn.fujitsu.com (Zhaolei)
Subject: [ltt-dev] [PATCH v2] Remove ltt-armall/disarmall's unwanted errormessages
Date: Fri, 17 Oct 2008 12:14:38 +0800	[thread overview]
Message-ID: <9D7EECC5F2624736AA58083DFA169796@zhaoleiwin> (raw)
In-Reply-To: <20081017040033.GA5067@Krystal>

Hi, Mathieu

> How about :
> 
> echo "connect $a default dynamic $CHANNEL" 2>&1 >/proc/ltt
> 
> and then use $?  as error value ?
> 
> (try issuing "echo $?" just after the failing command)
Actually, I considered about return value, but if other kind of error
happened, I think it is better to show errormsg to user.
If we judge on return value, user will see "Already connect" if other
 error happened.

Judge on "write error: File exists" maybe little iffy, but on worst case,
it will show whole errormessage to user(maybe the best choose).

Thanks!
> 
> Maybe we could also get rid of the "echo: write error: File exists" by
> returning a more appropriate error value from the write system call ?


> 
> Mathieu
> 


  parent reply	other threads:[~2008-10-17  4:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17  3:28 [ltt-dev] [PATCH v2] Remove ltt-armall/disarmall's unwanted error messages Zhaolei
     [not found] ` <20081017040033.GA5067@Krystal>
2008-10-17  4:14   ` Zhaolei [this message]
     [not found]     ` <20081020155223.GC28562@Krystal>
2008-10-21  1:52       ` [ltt-dev] [PATCH v2] Remove ltt-armall/disarmall's unwanted errormessages Zhaolei

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=9D7EECC5F2624736AA58083DFA169796@zhaoleiwin \
    --to=zhaolei@cn.fujitsu.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