Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:19537] [DHCP] Add try/exception when using psutil.process_iter (#19537) #19622

Merged
merged 1 commit into from
Jul 19, 2024

Commits on Jul 18, 2024

  1. [DHCP] Add try/exception when using psutil.process_iter (sonic-net#19537

    )
    
    Why I did it
    After got running process list by psutil, if some of the processes exited, but invoke name() / cmdline() function of them, it will raise NoSuchProcess exception
    Fix issue sonic-net#19507
    
    How I did it
    Add try/exception in process execution
    Change func get_target_process_cmds to get_target_process for reuse
    
    How to verify it
    UT passed
    yaqiangz authored and mssonicbld committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    0179e6d View commit details
    Browse the repository at this point in the history