From b02906d640a0003c6e2c71ff7cb13b26b8d9a060 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 9 Jul 2013 08:45:17 -0500 Subject: [PATCH] ensure input/output/stderr are handled properly for background process --- debian/changelog | 2 +- usr/lib/byobu/include/shutil | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0e2bd432..240351dd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,7 @@ byobu (5.44) unreleased; urgency=low * usr/lib/byobu/wifi_quality: - minor fix for wifi quality printing, sometimes = and sometimes : * usr/lib/byobu/include/shutil: - - 1 second should be long enough for finding metadata + - ensure input/output/stderr are handled properly for background process -- Dustin Kirkland Sun, 02 Jun 2013 00:15:10 -0500 diff --git a/usr/lib/byobu/include/shutil b/usr/lib/byobu/include/shutil index dc6c2398..2a53b9b7 100755 --- a/usr/lib/byobu/include/shutil +++ b/usr/lib/byobu/include/shutil @@ -218,7 +218,7 @@ metadata_available() { # Must seed the cache if [ -e /etc/ec2_version ] || [ -e /usr/sbin/update-grub-legacy-ec2 ]; then # This *looks* like a machine with metadata, so background a potentially slow check - wget -q -O "$cache" --timeout=1 --tries=1 http://169.254.169.254 2>/dev/null & + wget -q -O "$cache" --timeout=10 --tries=1 http://169.254.169.254 2>/dev/null /dev/null & sleep 0.02 [ -s "$cache" ] && x=1 fi