Re: [Keepalived-devel] lvs sync daemon zombies
Status: Beta
Brought to you by:
acassen
|
From: Alexandre C. <ale...@ca...> - 2002-07-19 12:31:49
|
Hi,
The follwoing patch fixes the issue... Have submitted to wensong approval.
diff -urN ipvs-1.0.4/ipvs/ip_vs_sync.c ipvs-1.0.4-alex/ipvs/ip_vs_sync.c
--- ipvs-1.0.4/ipvs/ip_vs_sync.c Thu Jul 11 16:26:41 2002
+++ ipvs-1.0.4-alex/ipvs/ip_vs_sync.c Fri Jul 19 13:30:50 2002
@@ -753,7 +753,9 @@
/* it is probably not correct here. we need use sys_wait4, but need
to patch the kernel to export sys_wait4, check it later...
sys_wait4(sync_pid, NULL, __WCLONE, NULL); */
- waitpid(sync_pid, NULL, __WCLONE);
+
+ /* reap the daemons */
+ waitpid(-1, NULL, __WCLONE|WNOHANG);
if (stop_sync)
IP_VS_BUG();
Regards,
Alexandre
|