This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10195501438
/
Operating_System
Watch
3
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
-
master
陈越
3 years ago
parent
ed7add6585
commit
9bf49d668e
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
main
+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
)
;
Write
Preview
Loading…
Cancel
Save