waitpid: CRITICAL BUGFIX. Add a reference counting mechansim to prevent wait from using stale memory that was freed by the exiting task

This commit is contained in:
Gregory Nutt
2015-12-22 11:48:17 -06:00
parent 8f540fd81a
commit b90da3f27b
13 changed files with 44 additions and 85 deletions
+4
View File
@@ -42,6 +42,10 @@ CSRCS += task_reparent.c
ifeq ($(CONFIG_SCHED_CHILD_STATUS),y)
CSRCS += group_childstatus.c
endif
else
ifeq ($(CONFIG_SCHED_WAITPID),y)
CSRCS += group_waiter.c
endif
endif
ifeq ($(CONFIG_ARCH_ADDRENV),y)