gazelle/0275-bugfix-start-fail-when-executing-the-popen-command-f.patch
yinbin6 40a2960a4c sync xdp: support XDP_STATISTICS by posix_api->getsockopt_fn
(cherry picked from commit 014b7488cbb047b935ae0c87acf6d1e24511597c)
2024-11-06 09:19:59 +08:00

26 lines
711 B
Diff

From e2ab6a041aa5587c6e6d021c32da2ce4d98522b2 Mon Sep 17 00:00:00 2001
From: hankangkang <hankangkang5@huawei.com>
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