Oleg Nesterov ad86622b47 wait: swap EXIT_ZOMBIE and EXIT_DEAD to hide EXIT_TRACE from user-space
get_task_state() uses the most significant bit to report the state to
user-space, this means that EXIT_ZOMBIE->EXIT_TRACE->EXIT_DEAD transition
can be noticed via /proc as Z -> X -> Z change.  Note that this was
possible even before EXIT_TRACE was introduced.

This is not really bad but imho it make sense to hide EXIT_TRACE from
user-space completely.  So the patch simply swaps EXIT_ZOMBIE and
EXIT_DEAD, this way EXIT_TRACE will be seen as EXIT_ZOMBIE by user-space.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Michal Schmidt <mschmidt@redhat.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Lennart Poettering <lpoetter@redhat.com>
Cc: Roland McGrath <roland@hack.frob.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-07 16:36:06 -07:00
..
2014-02-17 12:37:13 -08:00
2014-02-14 11:54:44 -06:00
2014-01-25 03:14:05 -05:00
2014-04-07 16:35:49 -07:00
2014-02-20 14:54:28 +01:00
2014-04-01 17:08:43 +02:00
2014-04-04 15:50:08 -07:00
2014-02-07 16:08:57 -08:00
2014-02-07 16:08:57 -08:00
2014-03-30 19:18:51 -04:00
2014-03-30 19:18:51 -04:00
2014-04-04 15:50:08 -07:00
2014-03-30 19:18:51 -04:00
2014-03-30 19:18:51 -04:00