ALT Linux Bugzilla
– Attachment 2231 Details for
Bug 13180
acpid logs overflow
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
попытка запатчить
acpid-debuglevel.patch (text/plain), 1.11 KB, created by
ildar
on 2007-10-22 14:38:07 MSD
(
hide
)
Description:
попытка запатчить
Filename:
MIME Type:
Creator:
ildar
Created:
2007-10-22 14:38:07 MSD
Size:
1.11 KB
patch
obsolete
>--- acpid-1.0.6/acpid.c.ORIG 2007-07-01 04:05:53 +0600 >+++ acpid-1.0.6/acpid.c 2007-09-18 13:31:15 +0600 >@@ -205,10 +205,10 @@ > /* read and handle an event */ > event = read_line(event_fd); > if (event) { >- acpid_log(LOG_INFO, >+ acpid_log(LOG_DEBUG, > "received event \"%s\"\n", event); > acpid_handle_event(event); >- acpid_log(LOG_INFO, >+ acpid_log(LOG_DEBUG, > "completed event \"%s\"\n", event); > } else if (errno == EPIPE) { > acpid_log(LOG_WARNING, >@@ -411,6 +411,9 @@ > log_opts |= LOG_PERROR; > } > openlog(PACKAGE, log_opts, LOG_DAEMON); >+ if (!acpid_debug) { >+ setlogmask(setlogmask(0) ^ LOG_DEBUG); >+ } > > /* set up stdin, stdout, stderr to /dev/null */ > if (dup2(nullfd, STDIN_FILENO) != STDIN_FILENO) { >--- acpid-1.0.6/event.c.ORIG 2007-07-01 04:05:53 +0600 >+++ acpid-1.0.6/event.c 2007-09-18 13:34:18 +0600 >@@ -606,7 +606,7 @@ > int r; > int client = rule->action.fd; > >- acpid_log(LOG_INFO, "notifying client %s\n", rule->origin); >+ acpid_log(LOG_DEBUG, "notifying client %s\n", rule->origin); > > r = safe_write(client, event, strlen(event)); > if (r < 0 && errno == EPIPE) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13180
: 2231