If for some reason top is killed, then the cursor is left mixed in with
the last output of top.  It's been a minor annoyance when rebooting a
remote box.


Index: top.c
===================================================================
RCS file: /home/cvs/openbsd/src/usr.bin/top/top.c,v
retrieving revision 1.68
diff -u -p -r1.68 top.c
--- top.c       10 Dec 2009 13:16:02 -0000      1.68
+++ top.c       15 Dec 2009 06:34:28 -0000
@@ -396,6 +396,7 @@ main(int argc, char *argv[])
        (void) signal(SIGINT, leave);
        siginterrupt(SIGINT, 1);
        (void) signal(SIGQUIT, leave);
+       (void) signal(SIGTERM, leave);
        (void) signal(SIGTSTP, tstop);
        if (smart_terminal)
                (void) signal(SIGWINCH, sigwinch);

Reply via email to