blob: 7dac453189ab710163be02474c7f98e5ec24fae4 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001commit e9f9a73c9dba8dd59f3d6c3acd9988ec8361d55a
2Author: Aws Ismail <aws.ismail@windriver.com>
3Date: Mon Dec 17 16:23:45 2012 -0500
4
5 Correct dangling g_thread_exit in session.c
6
7 hpi_shell's session.c has its progress_bar
8 thread created using pthread_create but
9 exited using g_thread_exit. Use pthread_exit
10 instead to avoid unpredictable GLIB thread
11 errors.
12
13 Upstream-Status: Pending
14
15 Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
16
17diff --git a/hpi_shell/session.c b/hpi_shell/session.c
18index 85c31bf..187da4c 100644
19--- a/hpi_shell/session.c
20+++ b/hpi_shell/session.c
21@@ -66,7 +66,7 @@ static void* progress_bar(void *unused)
22 if (i < (PROGRESS_BUF_SIZE - mes_len - 1)) i++;
23 t++;
24 };
25- g_thread_exit(0);
26+ pthread_exit(0);
27 return (void *)1;
28 }
29