summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-03-02 22:21:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-03-02 22:21:52 +0100
commit1b606146771feaabebebecbec3d0bfb515403bbf (patch)
treeab81cef3227ec515b60b7f5b8827f255ae24e75e
parent5fb997c779d89e0db39892f85c977825a86d32eb (diff)
Let server threads run
main.c (main): Call pthread_exit(NULL) to let server threads continue.
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index a725cf2da..6f748bd0b 100644
--- a/main.c
+++ b/main.c
@@ -29,5 +29,8 @@ int main(int argc, char **argv)
ddekit_thread_create (machdev_run1, NULL, "ds_server");
machdev_run2();
+ /* Let the other threads do their job */
+ pthread_exit(NULL);
+
return 0;
}