|
@@ -1928,6 +1928,12 @@ static __latent_entropy struct task_struct *copy_process(
|
|
goto bad_fork_cancel_cgroup;
|
|
goto bad_fork_cancel_cgroup;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* Let kill terminate clone/fork in the middle */
|
|
|
|
+ if (fatal_signal_pending(current)) {
|
|
|
|
+ retval = -EINTR;
|
|
|
|
+ goto bad_fork_cancel_cgroup;
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Process group and session signals need to be delivered to just the
|
|
* Process group and session signals need to be delivered to just the
|
|
* parent before the fork or both the parent and the child after the
|
|
* parent before the fork or both the parent and the child after the
|