blob: cc21ff8c798bdf4532753a248e9cbab73e3f3349 [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
Brad Bishop316dfdd2018-06-25 12:45:53 -040017Index: openhpi-3.6.1/hpi_shell/session.c
18===================================================================
19--- openhpi-3.6.1.orig/hpi_shell/session.c
20+++ openhpi-3.6.1/hpi_shell/session.c
21@@ -73,7 +73,7 @@ static void* progress_bar(void *unused)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022 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