From: Masaki Kanno Subject: [PATCH] Fix return code of xentop Date: Sun, 28 Jan 2007 13:17:57 +0900 Message-ID: <8AC742934A2D7Akanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-Xbdv0V6L3tVgGf3p8lBpg" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: dsteklof@us.ibm.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-Xbdv0V6L3tVgGf3p8lBpg Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Description: Mail message body Hi, When I tested the xentop with a wrong option, the xentop returned the return code 0. # xentop --abc xentop: unrecognized option `--abc' Usage: xentop [OPTION] Displays ongoing information about xen vm resources # echo $? 0 If the wrong option was specified, I think that the xentop had better return the return code 1 (or not 0). This patch fixes the return code of the xentop when the wrong option was specified. Signed-off-by: Masaki Kanno Best regards, Kan --Boundary-Xbdv0V6L3tVgGf3p8lBpg Content-Type: application/octet-stream; name="xentop.patch" Content-Disposition: attachment; filename="xentop.patch" Content-Transfer-Encoding: base64 ZGlmZiAtciBkMTcxMGViMzUzODUgdG9vbHMveGVuc3RhdC94ZW50b3AveGVudG9wLmMKLS0t IGEvdG9vbHMveGVuc3RhdC94ZW50b3AveGVudG9wLmMJU2F0IEphbiAyNyAxMzozMjoyNyAy MDA3ICswMDAwCisrKyBiL3Rvb2xzL3hlbnN0YXQveGVudG9wL3hlbnRvcC5jCVN1biBKYW4g MjggMTE6NTU6NDIgMjAwNyArMDkwMApAQCAtOTk4LDkgKzk5OCwxMSBAQCBpbnQgbWFpbihp bnQgYXJnYywgY2hhciAqKmFyZ3YpCiAKIAl3aGlsZSAoKG9wdCA9IGdldG9wdF9sb25nKGFy Z2MsIGFyZ3YsIHNvcHRzLCBsb3B0cywgJm9wdGluZCkpICE9IC0xKSB7CiAJCXN3aXRjaCAo b3B0KSB7Ci0JCWNhc2UgJ2gnOgogCQljYXNlICc/JzoKIAkJZGVmYXVsdDoKKwkJCXVzYWdl KGFyZ3ZbMF0pOworCQkJZXhpdCgxKTsKKwkJY2FzZSAnaCc6CiAJCQl1c2FnZShhcmd2WzBd KTsKIAkJCWV4aXQoMCk7CiAJCWNhc2UgJ1YnOgo= --Boundary-Xbdv0V6L3tVgGf3p8lBpg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-Xbdv0V6L3tVgGf3p8lBpg--