diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-09-06 15:09:43 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2018-08-06 15:56:02 +0000 |
commit | 5203e56b6b338ebe19cb5433c609f9f5eb7d12b7 (patch) | |
tree | 1d2d2dfef333508060d94e1e3ad5ac9f333d9b12 | |
parent | db083a4d72c304c6b3b8782fde3c03d66a9ccf88 (diff) | |
download | illumos-joyent-5203e56b6b338ebe19cb5433c609f9f5eb7d12b7.tar.gz |
9063 improve procfs exit handling
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
-rw-r--r-- | usr/src/uts/common/fs/proc/prvnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/proc/prvnops.c b/usr/src/uts/common/fs/proc/prvnops.c index 9a08f0c030..fdef53dc2e 100644 --- a/usr/src/uts/common/fs/proc/prvnops.c +++ b/usr/src/uts/common/fs/proc/prvnops.c @@ -3596,7 +3596,7 @@ pr_lookup_procdir(vnode_t *dp, char *comp) /* initialize the new prcommon struct */ if ((p->p_flag & SSYS) || p->p_as == &kas) pcp->prc_flags |= PRC_SYS; - if (p->p_stat == SZOMB) + if (p->p_stat == SZOMB || (p->p_flag & SEXITING) != 0) pcp->prc_flags |= PRC_DESTROY; pcp->prc_proc = p; pcp->prc_datamodel = p->p_model; |