Fix memory leak when a child exits without wait()-ed

Change-Id: I8ad9e20e3f3e6f406548a6c4de2bf4dc07c40b0e
Refs: #1349
This commit is contained in:
TOIDA,Suguru
2019-10-03 16:00:09 +09:00
committed by Masamichi Takagi
parent 1d1ec39a27
commit b3cbdeec84
6 changed files with 364 additions and 3 deletions

View 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