Fix for 'cleanup: not idle: 2313' bug.
This commit is contained in:
parent
13d1de5122
commit
baa3ac5853
|
|
@ -325,10 +325,12 @@ int for_trace;
|
||||||
/* 'rmp' now points to a child to be disinherited. */
|
/* 'rmp' now points to a child to be disinherited. */
|
||||||
rmp->mp_parent = INIT_PROC_NR;
|
rmp->mp_parent = INIT_PROC_NR;
|
||||||
parent_waiting = mproc[INIT_PROC_NR].mp_flags & WAITING;
|
parent_waiting = mproc[INIT_PROC_NR].mp_flags & WAITING;
|
||||||
if (parent_waiting && (rmp->mp_flags & ZOMBIE))
|
if (parent_waiting && (rmp->mp_flags & ZOMBIE) &&
|
||||||
|
rmp->mp_fs_call != PM_EXIT) {
|
||||||
cleanup(rmp);
|
cleanup(rmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Send a hangup to the process' process group if it was a session leader. */
|
/* Send a hangup to the process' process group if it was a session leader. */
|
||||||
if (procgrp != 0) check_sig(-procgrp, SIGHUP);
|
if (procgrp != 0) check_sig(-procgrp, SIGHUP);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user