aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-03-31 15:23:31 +0000
committerJustus Winter <[email protected]>2016-03-31 15:23:31 +0000
commit8be9dab2dd2f83ca922c01542c63b404e34bdfd9 (patch)
treecc029b1b90f242a6650a89da6d5ca1149901f395
parentgpg: Fix NULL-segv for missing tofu DB. (diff)
downloadgnupg-8be9dab2dd2f83ca922c01542c63b404e34bdfd9.tar.gz
gnupg-8be9dab2dd2f83ca922c01542c63b404e34bdfd9.zip
g10: Use gpg-error abstraction of sched_yield.
* g10/tofu.c (begin_transaction): Use 'gpgrt_yield'. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--g10/tofu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index baa2ac235..5f381b08e 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -28,7 +28,6 @@
#include <sys/stat.h>
#include <assert.h>
#include <stdarg.h>
-#include <sched.h>
#include <sqlite3.h>
#include "gpg.h"
@@ -240,7 +239,7 @@ begin_transaction (struct db *db, int only_batch)
batch_update_started = gnupg_get_time ();
/* Yield to allow another process a chance to run. */
- sched_yield ();
+ gpgrt_yield ();
}
/* XXX: In split mode, this can end in deadlock.