>i suppose the handler should not be restored if it was Perl's, something
>along the lines of (on top of take2 patch):

Exactly! this kind of thing is common in programs that do sigmasks
or tty mode masks.  The typical mistake is

    set noecho
    do something
    unset noecho

or

    block sigfoo
    do something
    unblock sigfoo

In both cases the bug is the same: you shouldn't undo something that
was already undone to start with. 

--tom

Reply via email to