projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proper shutdown
[oweals/gnunet.git]
/
src
/
util
/
test_os_priority.c
diff --git
a/src/util/test_os_priority.c
b/src/util/test_os_priority.c
index c2fdcc6f5c3aa9f91355eb4c7fe5d48341b731ea..94e2719a2aa05406a0646c9f2ded8088fb24a437 100644
(file)
--- a/
src/util/test_os_priority.c
+++ b/
src/util/test_os_priority.c
@@
-30,42
+30,30
@@
static int
testprio ()
{
static int
testprio ()
{
- pid_t child;
if (GNUNET_OK !=
if (GNUNET_OK !=
- GNUNET_OS_set_process_priority (
getpid
(),
+ GNUNET_OS_set_process_priority (
GNUNET_OS_process_current
(),
GNUNET_SCHEDULER_PRIORITY_DEFAULT))
return 1;
if (GNUNET_OK !=
GNUNET_SCHEDULER_PRIORITY_DEFAULT))
return 1;
if (GNUNET_OK !=
- GNUNET_OS_set_process_priority (
getpid
(),
+ GNUNET_OS_set_process_priority (
GNUNET_OS_process_current
(),
GNUNET_SCHEDULER_PRIORITY_UI))
return 1;
if (GNUNET_OK !=
GNUNET_SCHEDULER_PRIORITY_UI))
return 1;
if (GNUNET_OK !=
- GNUNET_OS_set_process_priority (
getpid
(),
+ GNUNET_OS_set_process_priority (
GNUNET_OS_process_current
(),
GNUNET_SCHEDULER_PRIORITY_IDLE))
return 1;
if (GNUNET_OK !=
GNUNET_SCHEDULER_PRIORITY_IDLE))
return 1;
if (GNUNET_OK !=
- GNUNET_OS_set_process_priority (
getpid
(),
+ GNUNET_OS_set_process_priority (
GNUNET_OS_process_current
(),
GNUNET_SCHEDULER_PRIORITY_BACKGROUND))
return 1;
if (GNUNET_OK !=
GNUNET_SCHEDULER_PRIORITY_BACKGROUND))
return 1;
if (GNUNET_OK !=
- GNUNET_OS_set_process_priority (
getpid
(),
+ GNUNET_OS_set_process_priority (
GNUNET_OS_process_current
(),
GNUNET_SCHEDULER_PRIORITY_HIGH))
return 1;
if (GNUNET_OK !=
GNUNET_SCHEDULER_PRIORITY_HIGH))
return 1;
if (GNUNET_OK !=
- GNUNET_OS_set_process_priority (
getpid
(),
+ GNUNET_OS_set_process_priority (
GNUNET_OS_process_current
(),
GNUNET_SCHEDULER_PRIORITY_HIGH))
return 1;
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;
}
return 0;
}