Commit 0af464c
Dmitry Antipov
posix: fix thread leak (#2851)
When restarting POSIX health check thread, terminate the previous
instance with 'gf_thread_cleanup_xint()' instead of 'pthread_cancel()'
and so avoid thread leak due to missing call to 'pthread_join()'.
Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
Updates: #10001 parent 1f39dc3 commit 0af464c
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
2230 | | - | |
| 2230 | + | |
2231 | 2231 | | |
2232 | | - | |
2233 | | - | |
| 2232 | + | |
| 2233 | + | |
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
74 | 73 | | |
75 | 74 | | |
0 commit comments