From 1f4244db0390c9482a86ef207d42b5e55f03fe7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 8 Jun 2021 21:57:26 +0200 Subject: Use vfork instead of fork --- tterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tterm.c') 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"); } -- cgit v1.2.3