Fix memory leak when a child exits without wait()-ed
Change-Id: I8ad9e20e3f3e6f406548a6c4de2bf4dc07c40b0e Refs: #1349
This commit is contained in:
committed by
Masamichi Takagi
parent
1d1ec39a27
commit
b3cbdeec84
16
test/issues/1349/result.log
Normal file
16
test/issues/1349/result.log
Normal file
@ -0,0 +1,16 @@
|
||||
[root@localhost mckernel]# cd test/issues/1349/
|
||||
[root@localhost 1349]# make
|
||||
cc -Wall -O0 -ggdb3 -c -o do_fork6.o do_fork6.c
|
||||
cc -lpthread do_fork6.o -o do_fork6
|
||||
[root@localhost 1349]# sh run.sh
|
||||
mcstop+release.sh ... done
|
||||
mcreboot.sh -c 12-59 -m 512M@4 ... done
|
||||
(an omission)
|
||||
[0] END FORK
|
||||
grandchild
|
||||
[0] FINISH CHILDREN
|
||||
FINISH PARENT
|
||||
OK
|
||||
|
||||
--
|
||||
result.log COPYRIGHT FUJITSU LIMITED 2020
|
||||
Reference in New Issue
Block a user