FreeBSD Bugzilla – Attachment 231009 Details for
Bug 261205
net/quagga: add some fixes to the port from upstream
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix threading error that broke ripd in 1.2.4
patch-lib_thread.c (text/plain), 803 bytes, created by
Eugene Grosbein
on 2022-01-14 19:34:51 UTC
(
hide
)
Description:
Fix threading error that broke ripd in 1.2.4
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2022-01-14 19:34:51 UTC
Size:
803 bytes
patch
obsolete
>--- lib/thread.c.orig 2022-01-15 00:23:57.600963000 +0700 >+++ lib/thread.c 2022-01-15 00:26:01.645088000 +0700 >@@ -603,8 +603,12 @@ thread_add_fd (struct thread **thread_array, struct th > static void > thread_add_unuse (struct thread *thread) > { >+ assert (thread); >+ /* thread_execute uses dummy threads, allocated on its stack */ >+ if (thread->master == NULL) >+ return; >+ > thread->type = THREAD_UNUSED; >- assert (thread->master != NULL && thread != NULL); > assert (thread->next == NULL); > assert (thread->prev == NULL); > thread_list_add (&thread->master->unuse, thread); >@@ -1342,9 +1346,7 @@ thread_call (struct thread *thread) > } > #endif /* CONSUMED_TIME_CHECK */ > >- >- if (thread->master) >- thread_add_unuse (thread); >+ thread_add_unuse (thread); > } > > /* Execute thread */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261205
: 231009 |
231010
|
231011