TWSD-830 One of the instance running on AVX was not able to access via Webui and CLI || CBI

Review Request #928 — Created June 19, 2025 and submitted — Latest diff uploaded

timlai
APV10
rel_apv_10_7, rel_apv_10_7_2, rel_apv_10_7_3
TWSD-830
jasonchang, kevin.poh, timsu, weikai

Root Cause:
Monitor process use ntp command regularly but not close command gracefully.
The improperly closed command has resulted in zombie processes remaining in the system.
Over time, these have consumed system resources, eventually causing the system to malfunction.

Solution:
Use pclose after poepen to execute command done.

Before:

[root@DR-ARRAY-CHASSIS-2-INT-LLB-1 ~]# ps -auxww | grep chronyc
root 10518 0.0 0.0 0 0 ? Z 12:10 0:00 [chronyc] <defunct>
root 10548 0.0 0.0 0 0 ? Z 12:11 0:00 [chronyc] <defunct>

After:

[root@DR-ARRAY-CHASSIS-2-INT-LLB-1 ~]# ps -auxww | grep chronyc
root 31706 0.0 0.0 112644 940 pts/0 S+ 12:40 0:00 grep --color=auto chronyc

    Loading...