summaryrefslogtreecommitdiff
path: root/tterm.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-08 21:57:26 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 22:05:39 +0200
commit1f4244db0390c9482a86ef207d42b5e55f03fe7b (patch)
tree2aca6a3dcacabe73ba64a872a582363ba77bcedc /tterm.c
parentd4724fab08656e18c7a8570febc094afbfa814d3 (diff)
downloadtterm-1f4244db0390c9482a86ef207d42b5e55f03fe7b.tar.gz
Use vfork instead of fork
Diffstat (limited to 'tterm.c')
-rw-r--r--tterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tterm.c b/tterm.c
index aaeb042..16a3622 100644
--- a/tterm.c
+++ b/tterm.c
@@ -97,7 +97,7 @@ main(int argc, char *argv[])
if (pidatom == None) die("no _NET_WM_PID atom found\n");
/* start terminal */
- if ((child = fork()) == 0) {
+ if ((child = vfork()) == 0) {
execlp(ARGV, NULL);
err(1, "execvp");
}