X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=usttrace;h=cb9464086adb7e82efad62059f2dc14e06874eca;hb=cab681366d2cf9039b3cfb8b8ce97ddaf6b5ba53;hp=c77f73114ae97d6e2db7f431f4f03c9714a17dd7;hpb=89a10f62996c8fa75cb2eb90871a705c919ea625;p=lttng-ust.git diff --git a/usttrace b/usttrace index c77f7311..cb946408 100755 --- a/usttrace +++ b/usttrace @@ -36,9 +36,9 @@ while getopts ":hlLmfs" options; do s) arg_syswide_daemon=1;; h) usage; exit 0;; - \?) echo $usage + \?) usage exit 1;; - *) echo $usage + *) usage exit 1;; esac done @@ -79,7 +79,10 @@ fi # Wait for the daemon to settle # If we don't, the process may try to connect to its socket before # it's ready. -# FIXME: is there a way to make sure this works every time? +# FIXME: is there a way to make sure this works every time? Yes, +# we could have a mode where ustd daemonizes itself. Therefore +# by the time the control returns to the console, it's ready. + sleep 0.5 # Establish the environment for the command