1.4.1-logging-append.patch 683 B

1234567891011121314151617181920
  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. Index: pm-utils/pm/pm-functions.in
  7. ===================================================================
  8. --- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200
  9. +++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200
  10. @@ -271,7 +271,7 @@
  11. return 1
  12. fi
  13. export LOGGING=true
  14. - exec > "$1" 2>&1
  15. + exec >> "$1" 2>&1
  16. }
  17. check_suspend() { [ -n "$SUSPEND_MODULE" ]; }