Skip to contentSkip to conversation

infiniband-diags: -V, --version: exit with zero status

PATCH New Sasha Khapyorsky 1 participant 1 message Jan 12, 2010 6 messages not in the archive InfiniBand

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]/

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20100105101346.GM26940@me

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 4DB33AEBD6F349EABE6AA1834AFBFC6B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org

#6 lore raw

PATCH 1/1 infiniband-diags: -V, --version: exit with zero status

When -V, --version command line option is used exit with zero status after a version showing.

---

Quoted 3 lines · Sean Hefty

Changes to the above components should be made to Sasha's tree first, or they risk being lost when I update the windows copy.

 infiniband-diags/src/ibdiag_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
infiniband-diags/src/ibdiag_common.c +1 -1
index 735b898..99861f1 100644
@@ -147,7 +147,7 @@ static int process_opt(int ch, char *optarg)
 		break;
 	case 'V':
 		fprintf(stderr, "%s %s\n", prog_name, get_build_version());
-		exit(2);
+		exit(0);
 	case 'e':
 		madrpc_show_errors(1);
 		break;
Signature · 6 lines
1.6.6

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html