From 435efddc9ee31d1f2bf8548b87f745e0fc54abb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchenyue=E2=80=9D?= <10195501438@stu.ecnu.edu.cn> Date: Wed, 17 Mar 2021 23:21:46 +0800 Subject: [PATCH] - --- main.c | 2 +- mytop.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 9b98d35..ed86af9 100644 --- a/main.c +++ b/main.c @@ -11,7 +11,7 @@ int main() { char cmdline[MAXLINE]; main_proc_pid = getpid(); - signal(SIGINT, sigint_handler); + //signal(SIGINT, sigint_handler); while(1) { diff --git a/mytop.c b/mytop.c index b38bfae..3dcf91a 100644 --- a/mytop.c +++ b/mytop.c @@ -1,4 +1,4 @@ -/* + #include #include #include @@ -335,6 +335,3 @@ void mytop() print_procs(prev_proc,proc,1); return; } -*/ -void mytop() -{} \ No newline at end of file