From ead340a66039096c7b4bf12dcd65e189769c6653 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 18 Oct 2021 17:51:11 -0700 Subject: feat(rc): job control prototype working for basic commands --- sys/cmd/rc/sys.c | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'sys/cmd/rc/sys.c') diff --git a/sys/cmd/rc/sys.c b/sys/cmd/rc/sys.c index 2c6a19d..643f327 100644 --- a/sys/cmd/rc/sys.c +++ b/sys/cmd/rc/sys.c @@ -1,12 +1,5 @@ #include "rc.h" -struct Wait -{ - int len, cap, *pid; -}; - -static struct Wait wait; - // ----------------------------------------------------------------------- // internal @@ -71,46 +64,6 @@ initenv(void) } } -void -clearwait(void) -{ - wait.len = 0; -} - -int -havewait(int pid) -{ - int i; - - for(i=0; i= 0 && !havewait(pid)) - return 0; -} -*/ - void execute(Word *cmd, Word *path) { -- cgit v1.2.1