]> Sergey Matveev's repositories - nnn.git/commitdiff
Ignore SIGINT to allow returning back to noice when we kill the screensaver
authorsin <sin@2f30.org>
Tue, 3 Nov 2015 17:48:39 +0000 (17:48 +0000)
committersin <sin@2f30.org>
Tue, 3 Nov 2015 17:49:07 +0000 (17:49 +0000)
Use 'q' to quit.

noice.c

diff --git a/noice.c b/noice.c
index 18577d3888c96e29054fb37b93cb3d824cb10c98..ef866d04649c43a96568f99965e392c8f90286f5 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -918,6 +918,8 @@ main(int argc, char *argv[])
                        ipath = "/";
        }
 
+       signal(SIGINT, SIG_IGN);
+
        /* Test initial path */
        if (canopendir(ipath) == 0)
                printerr(1, ipath);