summaryrefslogtreecommitdiffstats
path: root/apps/s_server.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-05-17 13:24:20 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-05-18 14:49:33 +0200
commit9be5f9a8698b0d902ef1281716eda73a4d8478ed (patch)
tree9a6fae021f6d21482b78768b97105da1495e613a /apps/s_server.c
parent78c44e4f819721eb80ad95fddc360a34f9e93118 (diff)
Move ossl_sleep() to e_os.h and use it in apps
Fixes #15304 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15308)
Diffstat (limited to 'apps/s_server.c')
-rw-r--r--apps/s_server.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 80c8a08c01..292ffbe762 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -3057,9 +3057,7 @@ static int www_body(int s, int stype, int prot, unsigned char *context)
continue;
}
#endif
-#if !defined(OPENSSL_SYS_MSDOS)
- sleep(1);
-#endif
+ ossl_sleep(1000);
continue;
}
} else if (i == 0) { /* end of input */
@@ -3486,9 +3484,7 @@ static int rev_body(int s, int stype, int prot, unsigned char *context)
continue;
}
#endif
-#if !defined(OPENSSL_SYS_MSDOS)
- sleep(1);
-#endif
+ ossl_sleep(1000);
continue;
}
} else if (i == 0) { /* end of input */