陈越 3 years ago
parent
commit
9bf49d668e
2 changed files with 3 additions and 2 deletions
  1. BIN
      main
  2. +3
    -2
      main.c

BIN
main View File


+ 3
- 2
main.c View File

@ -3,12 +3,12 @@
#include "fun.h"
pid_t main_proc_pid;
void sigint_handler()
{/*
{
pid_t pid = getpid();
if(pid != main_proc_pid)
{
exit(0);
}*/
}
}
int main()
@ -20,6 +20,7 @@ int main()
while(1)
{
printf("COMMAND->");
fflush(NULL);
fgets(cmdline, MAXLINE, stdin);
eval(cmdline);
history(cmdline);

Loading…
Cancel
Save