- if (v >= 0) {
- /*
- * While LTTng-UST and LTTng-tools will accept
- * a blocking timeout expressed in µs, the
- * current tracer implementation relies on
- * poll() which takes an "int timeout" parameter
- * expressed in msec.
- *
- * Since the error reporting from the tracer
- * is not precise, we perform this check here
- * to provide a helpful error message in case of
- * overflow.
- *
- * The setter (liblttng-ctl) also performs an
- * equivalent check.
- */
- v_msec = v / 1000;
- if (v_msec != (int32_t) v_msec) {
- ERR("32-bit milliseconds overflow in --blocking-timeout parameter: %s", opt_arg);
- ret = CMD_ERROR;
- goto end;
- }
- } else if (v != -1) {
- ERR("Invalid negative value passed as --blocking-timeout parameter; -1 (block forever) is the only valid negative value");
+
+ /*
+ * While LTTng-UST and LTTng-tools will accept a
+ * blocking timeout expressed in µs, the current
+ * tracer implementation relies on poll() which
+ * takes an "int timeout" parameter expressed in
+ * msec.
+ *
+ * Since the error reporting from the tracer is
+ * not precise, we perform this check here to
+ * provide a helpful error message in case of
+ * overflow.
+ *
+ * The setter (liblttng-ctl) also performs an
+ * equivalent check.
+ */
+ v_msec = v / 1000;
+ if (v_msec != (int32_t) v_msec) {
+ ERR("32-bit milliseconds overflow in --blocking-timeout parameter: %s", opt_arg);
+ ret = CMD_ERROR;
+ goto end;