diff options
| -rw-r--r-- | config.def.h | 2 | ||||
| -rw-r--r-- | dwl.c | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/config.def.h b/config.def.h index 089aa37..738a3ca 100644 --- a/config.def.h +++ b/config.def.h @@ -96,7 +96,7 @@ static const Key keys[] = {  	TAGKEYS(          XKB_KEY_3, XKB_KEY_numbersign,                 2),  	TAGKEYS(          XKB_KEY_4, XKB_KEY_dollar,                     3),  	TAGKEYS(          XKB_KEY_5, XKB_KEY_percent,                    4), -	TAGKEYS(          XKB_KEY_6, XKB_KEY_caret,                      5), +	TAGKEYS(          XKB_KEY_6, XKB_KEY_asciicircum,                5),  	TAGKEYS(          XKB_KEY_7, XKB_KEY_ampersand,                  6),  	TAGKEYS(          XKB_KEY_8, XKB_KEY_asterisk,                   7),  	TAGKEYS(          XKB_KEY_9, XKB_KEY_parenleft,                  8), @@ -1827,11 +1827,13 @@ run(char *startup_cmd)  			EBARF("startup: fork");  		if (startup_pid == 0) {  			dup2(piperw[0], STDIN_FILENO); +			close(piperw[0]);  			close(piperw[1]);  			execl("/bin/sh", "/bin/sh", "-c", startup_cmd, NULL);  			EBARF("startup: execl");  		}  		dup2(piperw[1], STDOUT_FILENO); +		close(piperw[1]);  		close(piperw[0]);  	}  	/* If nobody is reading the status output, don't terminate */ | 
