summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-09-18 07:23:04 -0700
committertaiyu <[email protected]>2015-09-18 07:23:04 -0700
commit0d51f62224a3c2e65894f1725076a588b172447c (patch)
tree35529e2a7888e4d3af0997371efd1da5bbf2ad15 /sway/commands.c
parentd2e2b04bfd505561981c9137bfc493bb8effe63e (diff)
parent318e1be240574e316094e5ea73d32e9f9a1f7c04 (diff)
merge + no c_extensions
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 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
+#include <strings.h>
#include <unistd.h>
#include <ctype.h>
+#include <sys/types.h>
#include "stringop.h"
#include "layout.h"
#include "focus.h"
@@ -193,7 +195,7 @@ static enum cmd_status cmd_exec_always(int argc, char **argv) {
sway_log(L_DEBUG, "Executing %s", cmd);
pid_t pid;
- if ((pid = vfork()) == 0) {
+ if ((pid = fork()) == 0) {
execv("/bin/sh", args);
_exit(-1);
} else if (pid < 0) {