Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/acpid.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/acpid.c
r3232 r3621 122 122 const char *args[] = { "run-parts", handler, NULL }; 123 123 124 // debug info 125 if (option_mask32 & OPT_d) { 126 bb_error_msg("%s", event); 127 } 124 // log the event 125 bb_error_msg("%s", event); 128 126 129 127 // spawn handler … … 154 152 155 153 if (buf) { 156 if ( strncmp(buf, evt_tab[i].desc, strlen(buf)) == 0) {154 if (is_prefixed_with(evt_tab[i].desc, buf)) { 157 155 action = evt_tab[i].desc; 158 156 break; … … 257 255 * This includes any output from children. 258 256 */ 259 xmove_fd(xopen(opt_logfile, O_WRONLY | O_CREAT | O_ TRUNC), STDOUT_FILENO);257 xmove_fd(xopen(opt_logfile, O_WRONLY | O_CREAT | O_APPEND), STDOUT_FILENO); 260 258 xdup2(STDOUT_FILENO, STDERR_FILENO); 261 259 /* Also, acpid's messages (but not children) will go to syslog too */
Note:
See TracChangeset
for help on using the changeset viewer.