From 157f83c2529dead6c289dc702e85cec39f973e3b Mon Sep 17 00:00:00 2001 From: 10195501441 <10195501441@stu.ecnu.edu.com> Date: Thu, 18 Mar 2021 17:17:17 +0800 Subject: [PATCH] test mytop --- yeeshell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yeeshell.c b/yeeshell.c index f770542..05a4b40 100644 --- a/yeeshell.c +++ b/yeeshell.c @@ -409,8 +409,9 @@ int builtin_mytop() if (prev_proc == NULL) get_procs(); print_procs(prev_proc, proc, cputimemode); - exit(1); + exit(0); } + return 1; } void mytop_memory()