2019-07-19 07:41:11 +00:00
|
|
|
--- a/programs/pluto/send.c
|
|
|
|
+++ b/programs/pluto/send.c
|
|
|
|
@@ -26,7 +26,7 @@
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#include <unistd.h> /* for usleep() */
|
|
|
|
+#include <time.h> /* for nanosleep() */
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include "defs.h"
|
2021-02-21 00:02:15 +00:00
|
|
|
@@ -192,7 +192,8 @@ static bool send_chunks(const char *wher
|
|
|
|
*/
|
|
|
|
if (impair.jacob_two_two) {
|
2019-07-19 07:41:11 +00:00
|
|
|
/* sleep for half a second, and second another packet */
|
|
|
|
- usleep(500000);
|
|
|
|
+ const struct timespec req = {0, 500 * 1000 * 1000};
|
|
|
|
+ nanosleep(&req, NULL);
|
2020-02-25 20:49:52 +00:00
|
|
|
endpoint_buf b;
|
|
|
|
endpoint_buf ib;
|
2021-02-21 00:02:15 +00:00
|
|
|
llog(RC_LOG, logger,
|