Magellan Linux

Contents of /trunk/pm-utils/patches/pm-utils-1.4.1-logging-append.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1410 - (show annotations) (download)
Wed Jul 13 09:24:09 2011 UTC (12 years, 9 months ago) by niro
File size: 683 byte(s)
-added patches for pm-utils
1 Author: James Westby <james.westby@ubuntu.com>
2 Description: Do not clear the log file on each operation, but instead append to it.
3 This makes debugging of several suspends much easier.
4 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
5 Bug-Ubuntu: https://launchpad.net/bugs/410352
6
7 Index: pm-utils/pm/pm-functions.in
8 ===================================================================
9 --- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200
10 +++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200
11 @@ -271,7 +271,7 @@
12 return 1
13 fi
14 export LOGGING=true
15 - exec > "$1" 2>&1
16 + exec >> "$1" 2>&1
17 }
18
19 check_suspend() { [ -n "$SUSPEND_MODULE" ]; }