commit - 6062e8ea890c053733ec0ad3387a40da18a45cda
commit + 3da8ef855d7d7b3da96a9f1cba55df276e112f11
blob - 52159fccda01040bb4cb1a1a48e126350a420f5c
blob + cbf77a99b234b7a155644a3abe25adda577f1a8d
--- tog/tog.c
+++ tog/tog.c
#include <pthread.h>
#include <libgen.h>
#include <regex.h>
+#include <sched.h>
#include "got_version.h"
#include "got_error.h"
if (errcode)
return got_error_set_errno(errcode,
"pthread_mutex_unlock");
- pthread_yield();
+ sched_yield();
errcode = pthread_mutex_lock(&tog_mutex);
if (errcode)
return got_error_set_errno(errcode,