From 070b19e2948b3a03669b0f1888f1661b0d196275 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 15 Aug 2023 19:23:58 +0200 Subject: user: fix freeze if graphical shell was quit --- src/cmd/init/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/init/init.c') diff --git a/src/cmd/init/init.c b/src/cmd/init/init.c index fcebfc7..d221a7f 100644 --- a/src/cmd/init/init.c +++ b/src/cmd/init/init.c @@ -31,11 +31,11 @@ void redirect(const char *exe, const char *out, const char *in) { termcook(); execv(exe, (void*)argv); fprintf(stderr, "init: couldn't start %s\n", exe); - _sys_sleep(5000); exit(1); } _sys_await(); _sys_intr(); + _sys_sleep(1000); } } } -- cgit v1.2.3