summaryrefslogtreecommitdiff
path: root/cmd/srv9p/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/srv9p/main.c')
-rw-r--r--cmd/srv9p/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/srv9p/main.c b/cmd/srv9p/main.c
index ac61625..d0a683a 100644
--- a/cmd/srv9p/main.c
+++ b/cmd/srv9p/main.c
@@ -10,6 +10,7 @@
#include <lib9p/srv.h>
#include <libcr/coroutine.h>
#include <libhw/generic/net.h>
+#include <libhw/generic/alarmclock.h>
#include <libhw/host_net.h>
#include "static9p.h"
@@ -112,11 +113,13 @@ static COROUTINE init_cr(void *) {
char name[] = {'r', 'e', 'a', 'd', '-', hexdig[i], '\0'};
if (!coroutine_add(name, read_cr, &srv))
error(1, 0, "coroutine_add(read_cr, &srv)");
+ sleep_for_s(1);
}
for (int i = 0; i < 2*CONFIG_SRV9P_NUM_CONNS; i++) {
char name[] = {'w', 'r', 'i', 't', 'e', '-', hexdig[i], '\0'};
if (!coroutine_add(name, lib9p_srv_write_cr, &srv))
error(1, 0, "coroutine_add(lib9p_srv_write_cr, &srv)");
+ sleep_for_s(1);
}
cr_exit();