mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] Don't inherit ->splice_pipe across forks
It's really task private, so clear that field on fork after copying task structure. Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
parent
7daac49020
commit
a0aa7f68af
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
|
||||||
atomic_set(&tsk->usage,2);
|
atomic_set(&tsk->usage,2);
|
||||||
atomic_set(&tsk->fs_excl, 0);
|
atomic_set(&tsk->fs_excl, 0);
|
||||||
tsk->btrace_seq = 0;
|
tsk->btrace_seq = 0;
|
||||||
|
tsk->splice_pipe = NULL;
|
||||||
return tsk;
|
return tsk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue