summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index f2ee0184..80770e87 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -5,8 +5,10 @@
5#include <stdlib.h> 5#include <stdlib.h>
6#include <errno.h> 6#include <errno.h>
7#include <string.h> 7#include <string.h>
8#include <strings.h>
8#include <unistd.h> 9#include <unistd.h>
9#include <ctype.h> 10#include <ctype.h>
11#include <sys/types.h>
10#include "stringop.h" 12#include "stringop.h"
11#include "layout.h" 13#include "layout.h"
12#include "focus.h" 14#include "focus.h"
@@ -193,7 +195,7 @@ static enum cmd_status cmd_exec_always(int argc, char **argv) {
193 sway_log(L_DEBUG, "Executing %s", cmd); 195 sway_log(L_DEBUG, "Executing %s", cmd);
194 196
195 pid_t pid; 197 pid_t pid;
196 if ((pid = vfork()) == 0) { 198 if ((pid = fork()) == 0) {
197 execv("/bin/sh", args); 199 execv("/bin/sh", args);
198 _exit(-1); 200 _exit(-1);
199 } else if (pid < 0) { 201 } else if (pid < 0) {