X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-comm.c;h=f08e7b0698a83e1834c3c6dea2e2badb81b22bb0;hb=13b09b636068bd4395b7cdd4f0be99cbfa95fe2f;hp=8effa36999bb8230f5b1718a8a2aa60808305343;hpb=267f70926b9311fa87adfda0f5c900e9e6826421;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 8effa369..f08e7b06 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -437,6 +437,9 @@ long get_timeout(void) } if (str_timeout) constructor_delay_ms = strtol(str_timeout, NULL, 10); + /* All negative values are considered as "-1". */ + if (constructor_delay_ms < -1) + constructor_delay_ms = -1; return constructor_delay_ms; }