diff options
author | June McEnroe <june@causal.agency> | 2017-09-05 22:38:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-09-05 22:38:55 -0400 |
commit | 3c77d9da4e090b177425d720f2ce0aa7083f2953 (patch) | |
tree | b3abb8ca4757bc371f8857f513736fe5e3e4f056 | |
parent | Add watch.c (diff) | |
download | src-3c77d9da4e090b177425d720f2ce0aa7083f2953.tar.gz src-3c77d9da4e090b177425d720f2ce0aa7083f2953.zip |
Pass final NULL to execlp
Diffstat (limited to '')
-rwxr-xr-x | home/.bin/pbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home/.bin/pbd.c b/home/.bin/pbd.c index 47860a85..01e5c07d 100755 --- a/home/.bin/pbd.c +++ b/home/.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"); } } |