File 0351-os_mon-Add-comment-about-absulute-path-usage.patch of Package erlang

From 4178865d1cadba1f5c964351a697851c7a41aac5 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Thu, 15 Oct 2020 13:58:40 +0200
Subject: [PATCH] os_mon: Add comment about absulute path usage

---
 lib/os_mon/src/disksup.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/os_mon/src/disksup.erl b/lib/os_mon/src/disksup.erl
index d1685b0054..b85b7c854a 100644
--- a/lib/os_mon/src/disksup.erl
+++ b/lib/os_mon/src/disksup.erl
@@ -243,6 +243,8 @@ find_cmd(Cmd, Path) ->
 
 %%--Check disk space----------------------------------------------------
 
+%% We use as many absolute paths as possible below as there may be stale
+%% NFS handles in the PATH which cause these commands to hang.
 check_disk_space({win32,_}, not_used, Threshold) ->
     Result = os_mon_sysinfo:get_disk_info(),
     check_disks_win32(Result, Threshold);
-- 
2.26.2

openSUSE Build Service is sponsored by