From 361a7e40ed68d7fe91da4b8424eb65915cdbac5a Mon Sep 17 00:00:00 2001 From: mananapr Date: Thu, 11 Jul 2019 16:38:43 +0530 Subject: [PATCH] fixed vim bug --- cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf.c b/cf.c index 0bbe9f9..81dd47d 100644 --- a/cf.c +++ b/cf.c @@ -863,7 +863,7 @@ void openFile(char *filepath) else { int status; - waitpid(-1, &status, 0); + waitpid(pid, &status, 0); return; } }