--- rxvt-unicode/src/rxvtc.C 2011/05/01 13:54:27 1.34 +++ rxvt-unicode/src/rxvtc.C 2021/07/23 19:18:52 1.38 @@ -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,17 +21,18 @@ *----------------------------------------------------------------------*/ #include "../config.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include +#include + #include "rxvtdaemon.h" -#include "libptytty.h" #define STATUS_SUCCESS 0 #define STATUS_FAILURE 1 @@ -95,6 +96,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++)