As pointed out by Philipp Thomas <[email protected]>: Currently opensm will silently fail if you pass '-g 0 -B'. As you can't ask for a port, exit with failure so admin can see the reason for opensm's failure.
Signed-off-by: Hal Rosenstock <[email protected]> --- diff --git a/opensm/main.c b/opensm/main.c index 4218cc6..fca209a 100644 --- a/opensm/main.c +++ b/opensm/main.c @@ -1120,8 +1120,14 @@ int main(int argc, char *argv[]) block_signals(); - if (opt.daemon) + if (opt.daemon) { + if (INVALID_GUID == opt.guid) { + fprintf(stderr, + "ERROR: Invalid GUID specified; exiting because of daemon mode\n"); + return -1; + } daemonize(&osm); + } complib_init(); -- 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
