diff options
author | des <des@FreeBSD.org> | 1998-10-13 15:14:37 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-10-13 15:14:37 +0000 |
commit | 43cb8a7cb93931496071f3ec7aa0f9bc83cf82e6 (patch) | |
tree | dbeba16fe4f21744d5a9e8d60df1d407fd63e3db /usr.bin/window/wwterminfo.c | |
parent | efc55abc0285bfcd0d1f79e5cce0f6d1d3fa1657 (diff) | |
download | FreeBSD-src-43cb8a7cb93931496071f3ec7aa0f9bc83cf82e6.zip FreeBSD-src-43cb8a7cb93931496071f3ec7aa0f9bc83cf82e6.tar.gz |
One vfork() changed to fork(); one execl() changed to execv(). The
latter isn't actually called as far as I can see since FreeBSD uses
termcap and not terminfo.
Diffstat (limited to 'usr.bin/window/wwterminfo.c')
-rw-r--r-- | usr.bin/window/wwterminfo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c index d814452..89994c0 100644 --- a/usr.bin/window/wwterminfo.c +++ b/usr.bin/window/wwterminfo.c @@ -91,13 +91,17 @@ wwterminfoinit() */ wwterminfoend() { - + char *args[4]; + args[0] = _PATH_RM; + args[1] = "-rf"; + args[2] = wwterminfopath; + args[3] = NULL; switch (vfork()) { case -1: /* can't really do (or say) anything about errors */ return -1; case 0: - execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0); + execv(args[0], args); _exit(0); default: wait(NULL); |