• J
    uml: SIGIO support cleanup · 42a359e3
    Jeff Dike 提交于
    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: NJeff Dike <jdike@linux.intel.com>
    Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    42a359e3
line.c 19.7 KB