Skip to contentSkip to conversation

ts-examine-logs-save: Do not do readdir $! check

PATCH New Ian Jackson 1 participant 1 message May 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-examine-logs-save: Do not do readdir $! check

In perl 5.14 in Massachusetts, this produces this message
/home/logs/logs/109694/test-amd64-amd64-examine Bad file descriptor at ./ts-examine-logs-save line 100.

Sadly this means there is no way to tell failure apart from end of directory. This patch should be reverted when we have a fixed version of perl.

---
 ts-examine-logs-save | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ts-examine-logs-save +1 -1
index 014522a..b9c9941 100755
@@ -97,7 +97,7 @@ sub save_logs () {
 	logm("saving $f");
 	link "$stash/$f", "$td/$f" or die "$stash $td $f $!";
     }
-    die "$stash $!" if $!;
+    # die "$stash $!" if $!;
     closedir D;
 }
 
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel