forked from solusipse/fiche
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deduplicate the cleanup in handle_connection() * Remove the VLA from handle_connection() This fixes a segfault on musl libc with reasonable sized buffers, as musl's default thread stack size is quite small (128k since 1.1.21). A similar bug exists on glibc with large enough buffers (reproducable with e.g. 16MB on my test system). This commit fixes solusipse#108. * Remove the superfluous call to pthread_exit Returning from the start function of a thread is specified to implicitly call pthread_exit(). * Request a reasonably small thread stack This somewhat mitigates the problem that now the buffer is allocated in addition to the already allocated thread stack. Co-authored-by: Johannes Nixdorf <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters