Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | commit e9f9a73c9dba8dd59f3d6c3acd9988ec8361d55a |
| 2 | Author: Aws Ismail <aws.ismail@windriver.com> |
| 3 | Date: 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 17 | Index: 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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 | |