[PATCH] uml: fix exitcall ordering bug
authorJeff Dike <jdike@addtoit.com>
Mon, 10 Jul 2006 11:45:11 +0000 (04:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:24 +0000 (13:24 -0700)
commit61232f2fe44f7ac12d7512d099a8f10923eff7ea
treef1f17d310daf7f5b60ad6713a7a1ac7011ae45e8
parent8e64d96aeb495709c13307e2d79f3ee37e96aa4e
[PATCH] uml: fix exitcall ordering bug

This fixes an exitcall ordering bug - calls to ignore_sigio_fd can come from
exitcalls that come after the sigio thread has been killed.  This would cause
shutdown to hang or crash.

Fixed by having ignore_sigio_fd check that the thread is present before trying
to communicate with it.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/os-Linux/sigio.c