From e2ab6a041aa5587c6e6d021c32da2ce4d98522b2 Mon Sep 17 00:00:00 2001 From: hankangkang Date: Wed, 30 Oct 2024 11:15:55 +0800 Subject: [PATCH] bugfix: start fail when executing the popen command for the second time in openGauss --- src/lstack/core/lstack_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lstack/core/lstack_init.c b/src/lstack/core/lstack_init.c index a72af84..8ffc3a1 100644 --- a/src/lstack/core/lstack_init.c +++ b/src/lstack/core/lstack_init.c @@ -98,7 +98,6 @@ static int32_t check_process_conflict(void) } ret = flock((fileno(fp)), LOCK_EX | LOCK_NB); - (void)fclose(fp); if (ret < 0) { return -1; } -- 2.33.0