summary refs log tree commit diff
path: root/curtis
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-09-05 22:38:55 -0400
committerJune McEnroe <programble@gmail.com>2017-09-05 22:38:55 -0400
commit5181f4adaac153b2d1cb03730e428d526bfa5a3a (patch)
treeb5ebdf863184fe2092b5045aab72b7d0ea1e102b /curtis
parentAdd watch.c (diff)
downloadsrc-5181f4adaac153b2d1cb03730e428d526bfa5a3a.tar.gz
src-5181f4adaac153b2d1cb03730e428d526bfa5a3a.zip
Pass final NULL to execlp
Diffstat (limited to 'curtis')
-rwxr-xr-xcurtis/.bin/pbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/curtis/.bin/pbd.c b/curtis/.bin/pbd.c
index 47860a85..01e5c07d 100755
--- a/curtis/.bin/pbd.c
+++ b/curtis/.bin/pbd.c
@@ -38,7 +38,7 @@ static void spawn(const char *cmd, int childFd, int parentFd) {
         int fd = dup2(parentFd, childFd);
         if (fd < 0) err(EX_OSERR, "dup2");
 
-        int error = execlp(cmd, cmd);
+        int error = execlp(cmd, cmd, NULL);
         if (error) err(EX_OSERR, "execlp");
     }
 }