From: Jean-Philippe Orsini Date: Sat, 23 Aug 2014 11:42:42 +0000 (+0200) Subject: fixed checking of the thread creation. X-Git-Tag: v1.1.1~8 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=a72ea0425c1b9d8bd35f0d1b0cc74686f3c37fe0 fixed checking of the thread creation. --- diff --git a/src/main.c b/src/main.c index 811893c..258b58b 100644 --- a/src/main.c +++ b/src/main.c @@ -593,7 +593,7 @@ int main(int argc, char **argv) ret = pthread_create(&thread, NULL, update_measures, &ui); - if (!ret) + if (ret) log_err(_("Failed to create thread for monitoring sensors")); ui.graph_update_interval = ui.config->graph_update_interval;