]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
uml: SIGIO support cleanup
authorJeff Dike <jdike@addtoit.com>
Mon, 16 Jul 2007 06:38:55 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:38 +0000 (09:05 -0700)
commit42a359e31a0e438b5b978a8f0fecdbd3c86bb033
treefc6a6a11e1187e163ba694bf4ab5cf48aa528f34
parentd14ad81f800a57d3f21f8e98556c728968883e9a
uml: SIGIO support cleanup

Cleanup of the SIGWINCH support.

Some code and comment reformatting.

The stack used for SIGWINCH threads was leaked.  This is now fixed by storing
it with the pid and other information, and freeing it when the thread is
killed.

If something goes wrong with a WIGWINCH thread, and this is discovered in the
interrupt handler, the winch record would leak.  It is now freed, except that
the IRQ isn't freed.  This is hard to do from interrupt context.  This has the
side-effect that the IRQ system maintains a reference to the freed structure,
but that shouldn't cause a problem since the descriptor is disabled.

register_winch_irq is now much better about cleaning up after an
initialization failure.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/chan_user.c
arch/um/drivers/line.c
arch/um/include/chan_user.h
arch/um/os-Linux/skas/process.c