--- rxvt-unicode/src/rxvtc.C 2011/05/01 13:54:27 1.34 +++ rxvt-unicode/src/rxvtc.C 2014/10/06 11:14:49 1.37 @@ -7,7 +7,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -21,10 +21,10 @@ *----------------------------------------------------------------------*/ #include "../config.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -95,6 +95,12 @@ sigprocmask (SIG_BLOCK, &ss, 0); } + if (argc >= 2 && !strcmp (argv[1], "-k")) + { + c.send ("QUIT"); + return 0; + } + c.send ("NEW"); for (char **var = environ; *var; var++)