aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-03 21:41:22 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-03 21:41:22 +0000
commit3983c5e290c36014c54acd4a359d8e56dbf35f9a (patch)
treef060e2dd7c02bf788a3192aa38302b0656fe02f4 /src/util
parentd8abe51562c11473ebcb823ad67c529be2c9dc92 (diff)
downloadgnunet-3983c5e290c36014c54acd4a359d8e56dbf35f9a.tar.gz
gnunet-3983c5e290c36014c54acd4a359d8e56dbf35f9a.zip
fix
Diffstat (limited to 'src/util')
-rw-r--r--src/util/test_os_priority.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/util/test_os_priority.c b/src/util/test_os_priority.c
index 17874a6ee..94e2719a2 100644
--- a/src/util/test_os_priority.c
+++ b/src/util/test_os_priority.c
@@ -30,7 +30,6 @@
30static int 30static int
31testprio () 31testprio ()
32{ 32{
33 pid_t child;
34 if (GNUNET_OK != 33 if (GNUNET_OK !=
35 GNUNET_OS_set_process_priority (GNUNET_OS_process_current (), 34 GNUNET_OS_set_process_priority (GNUNET_OS_process_current (),
36 GNUNET_SCHEDULER_PRIORITY_DEFAULT)) 35 GNUNET_SCHEDULER_PRIORITY_DEFAULT))
@@ -55,17 +54,6 @@ testprio ()
55 GNUNET_OS_set_process_priority (GNUNET_OS_process_current (), 54 GNUNET_OS_set_process_priority (GNUNET_OS_process_current (),
56 GNUNET_SCHEDULER_PRIORITY_HIGH)) 55 GNUNET_SCHEDULER_PRIORITY_HIGH))
57 return 1; 56 return 1;
58#ifndef MINGW
59 child = fork ();
60 if (child == 0)
61 {
62 sleep (10);
63 exit (0);
64 }
65 if (GNUNET_OK !=
66 GNUNET_OS_set_process_priority (child, GNUNET_SCHEDULER_PRIORITY_IDLE))
67 return 1;
68#endif
69 return 0; 57 return 0;
70} 58}
71 59