X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_os_priority.c;h=bb740db5fad8c007511102a20faa2ec4ebf13c3d;hb=9b0414d6f98f33d7e1c33dafe105eb58da0bf79b;hp=17874a6ee283db8295dd425212b70f797a79f41f;hpb=721e49caeea6ba5073f8bc5c6c08359295c02bb5;p=oweals%2Fgnunet.git diff --git a/src/util/test_os_priority.c b/src/util/test_os_priority.c index 17874a6ee..bb740db5f 100644 --- a/src/util/test_os_priority.c +++ b/src/util/test_os_priority.c @@ -25,12 +25,10 @@ #include "gnunet_common.h" #include "gnunet_os_lib.h" -#define VERBOSE 0 static int testprio () { - pid_t child; if (GNUNET_OK != GNUNET_OS_set_process_priority (GNUNET_OS_process_current (), GNUNET_SCHEDULER_PRIORITY_DEFAULT)) @@ -55,17 +53,6 @@ testprio () GNUNET_OS_set_process_priority (GNUNET_OS_process_current (), GNUNET_SCHEDULER_PRIORITY_HIGH)) return 1; -#ifndef MINGW - child = fork (); - if (child == 0) - { - sleep (10); - exit (0); - } - if (GNUNET_OK != - GNUNET_OS_set_process_priority (child, GNUNET_SCHEDULER_PRIORITY_IDLE)) - return 1; -#endif return 0; }