forked from external/yambar
module/script: remove debug output that wasn’t actually using LOG_DBG()
This commit is contained in:
parent
fbaa208768
commit
430e505bd2
1 changed files with 1 additions and 3 deletions
|
@ -61,7 +61,6 @@ static struct tag *
|
||||||
process_line(struct module *mod, const char *line, size_t len)
|
process_line(struct module *mod, const char *line, size_t len)
|
||||||
{
|
{
|
||||||
const char *_name = line;
|
const char *_name = line;
|
||||||
LOG_INFO("LINE: %.*s", (int)len, line);
|
|
||||||
|
|
||||||
const char *type = memchr(line, '|', len);
|
const char *type = memchr(line, '|', len);
|
||||||
if (type == NULL)
|
if (type == NULL)
|
||||||
|
@ -425,13 +424,12 @@ run(struct module *mod)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_WARN("child running under PID=%u", pid);
|
LOG_DBG("script running under PID=%u", pid);
|
||||||
|
|
||||||
int ret = run_loop(mod, comm_pipe[0]);
|
int ret = run_loop(mod, comm_pipe[0]);
|
||||||
|
|
||||||
close(comm_pipe[0]);
|
close(comm_pipe[0]);
|
||||||
if (waitpid(pid, NULL, WNOHANG) == 0) {
|
if (waitpid(pid, NULL, WNOHANG) == 0) {
|
||||||
LOG_WARN("sending SIGTERM to PGRP=%u", pid);
|
|
||||||
killpg(pid, SIGTERM);
|
killpg(pid, SIGTERM);
|
||||||
|
|
||||||
/* TODO: send SIGKILL after X seconds */
|
/* TODO: send SIGKILL after X seconds */
|
||||||
|
|
Loading…
Add table
Reference in a new issue