[ltt-dev] [PATCH v2] Remove ltt-armall/disarmall's unwanted errormessages

Zhaolei zhaolei at cn.fujitsu.com
Fri Oct 17 00:14:38 EDT 2008


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
> 


More information about the lttng-dev mailing list