diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-16 00:04:29 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-16 00:04:29 +0200 |
commit | e66b9314c918ffcc495cb30ab22abfc9ad71d7d5 (patch) | |
tree | 22a85a54e19a6f2791e8d6b5c4566810a7766cfd /src/progman.c | |
parent | 48e3e7d108541fc2612bab8081d4871398429cc3 (diff) | |
download | pies-e66b9314c918ffcc495cb30ab22abfc9ad71d7d5.tar.gz pies-e66b9314c918ffcc495cb30ab22abfc9ad71d7d5.tar.bz2 |
Bugfixes.
* src/diag.c (vlogmsg): Copy va_list before printing
it to stderr.
* src/progman.c (print_status): First arg is const.
Diffstat (limited to 'src/progman.c')
-rw-r--r-- | src/progman.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/progman.c b/src/progman.c index ffaf37b..9143b99 100644 --- a/src/progman.c +++ b/src/progman.c @@ -1708,7 +1708,7 @@ progman_stop () } static void -print_status (char *tag, pid_t pid, int status, int expect_term) +print_status (const char *tag, pid_t pid, int status, int expect_term) { if (WIFEXITED (status)) { @@ -2053,7 +2053,7 @@ run_command (struct action *act, struct prog *prog, unsigned retcode, /* Master */ debug (1, (_("started command: %s, pid=%lu"), act->command, (unsigned long) pid)); - register_command (_("[action]"), xstrdup (act->command), pid); + register_command ((char*) _("[action]"), xstrdup (act->command), pid); } static void @@ -2130,11 +2130,6 @@ progman_cleanup (int expect_term) if (!prog) { print_status (_("subprocess"), pid, status, expect_term); - /* - logmsg (LOG_NOTICE, - _("subprocess %lu finished"), - (unsigned long) pid); - */ continue; } prog->pid = 0; |