From 8f0b3cd60bd9c41245aba9308efd26f4672e5395 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 17 Nov 2024 21:51:39 -0700 Subject: cmd/srv9p: "Test" sleep --- cmd/srv9p/main.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include +#include #include #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(); -- cgit v1.2.3-2-g168b