diff options
Diffstat (limited to 'common/sysutils.c')
-rw-r--r-- | common/sysutils.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/common/sysutils.c b/common/sysutils.c index 95e0f8c0b..afb12edfd 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -275,18 +275,8 @@ check_permissions(const char *path,int extension,int checkonly) void gnupg_sleep (unsigned int seconds) { -#ifdef HAVE_NPTH - /* With Pth we force a regular sleep for seconds == 0 so that also - the process will give up its timeslot. */ - if (!seconds) - { -# ifdef HAVE_W32_SYSTEM - Sleep (0); -# else - sleep (0); -# endif - } - pth_sleep (seconds); +#ifdef USE_NPTH + npth_sleep (seconds); #else /* Fixme: make sure that a sleep won't wake up to early. */ # ifdef HAVE_W32_SYSTEM |