summaryrefslogtreecommitdiff
path: root/pcr/pm-utils/02-logging-append.patch
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-03-21 11:45:34 -0300
committerDavid P <megver83@openmailbox.org>2017-03-21 11:45:34 -0300
commit7e490bcaa32a4e96f3a9161aaef4c11a0a6631e9 (patch)
treeab6d7df5ac433b15ac5df03269d2dd345103dacd /pcr/pm-utils/02-logging-append.patch
parent8c07114e19a34b96c330160ce73427980bfe2901 (diff)
downloadabslibre-7e490bcaa32a4e96f3a9161aaef4c11a0a6631e9.tar.gz
abslibre-7e490bcaa32a4e96f3a9161aaef4c11a0a6631e9.tar.bz2
abslibre-7e490bcaa32a4e96f3a9161aaef4c11a0a6631e9.zip
Added pm-utils to [pcr]
Diffstat (limited to 'pcr/pm-utils/02-logging-append.patch')
-rw-r--r--pcr/pm-utils/02-logging-append.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/pm-utils/02-logging-append.patch b/pcr/pm-utils/02-logging-append.patch
new file mode 100644
index 000000000..987e0570a
--- /dev/null
+++ b/pcr/pm-utils/02-logging-append.patch
@@ -0,0 +1,19 @@
+Author: James Westby <james.westby@ubuntu.com>
+Description: Do not clear the log file on each operation, but instead append to it.
+ This makes debugging of several suspends much easier.
+Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
+Bug-Ubuntu: https://launchpad.net/bugs/410352
+
+Index: pm-utils/pm/pm-functions.in
+===================================================================
+--- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200
++++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200
+@@ -271,7 +271,7 @@
+ return 1
+ fi
+ export LOGGING=true
+- exec > "$1" 2>&1
++ exec >> "$1" 2>&1
+ }
+
+ check_suspend() { [ -n "$SUSPEND_MODULE" ]; }