diff options
-rw-r--r-- | src/sys/arch/amd64/os/os_proc.c | 3 | ||||
-rw-r--r-- | src/sys/include/sys/proc.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/sys/arch/amd64/os/os_proc.c b/src/sys/arch/amd64/os/os_proc.c index f2eb2b3..1f2f568 100644 --- a/src/sys/arch/amd64/os/os_proc.c +++ b/src/sys/arch/amd64/os/os_proc.c @@ -252,6 +252,9 @@ md_proc_kill(struct proc *procp, int flags) procp = core->curproc; } + /* Show others we are exiting */ + procp->flags |= PROC_EXITING; + /* Free every range */ TAILQ_FOREACH(range, &procp->maplist, link) { if (range == NULL) { diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h index cfc193a..48c784a 100644 --- a/src/sys/include/sys/proc.h +++ b/src/sys/include/sys/proc.h @@ -97,7 +97,7 @@ struct proc { TAILQ_ENTRY(proc) link; }; -#define PROC_EXITING BIT(0) +#define PROC_EXITING BIT(0) /* Process is exiting */ /* * Initialize a process into a basic minimal |