From a9a658d9f9db918f9f82e66566baa8bbdc7198a6 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sun, 25 Nov 2012 23:27:18 +0100 Subject: Restrict calls to the DDE API * main.c (start_ds_server): New function. (main): call ddekit_thread_create instead of cthread_detach. --- main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index d9eacaf85..58bde13bd 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,12 @@ int using_std = 1; +static void +start_ds_server (void *arg) +{ + ds_server (arg); +} + int main(int argc, char **argv) { check_kernel(); @@ -28,7 +34,7 @@ int main(int argc, char **argv) mach_device_init(); trivfs_init(); - cthread_detach (cthread_fork (ds_server, NULL)); + ddekit_thread_create (start_ds_server, NULL, "ds_server"); trivfs_server(); return 0; -- cgit v1.2.3