aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-07-23 08:39:51 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-07-23 08:39:51 +0300
commitbfc93d7aa82a05c493dd9f3701730bce56479a99 (patch)
treee0344e5547dfc11fd8f481c10aeca30f6fbd1030
parent9b14c4ec1d89a99012c8d88a620caacec11c3371 (diff)
downloadpies-bfc93d7aa82a05c493dd9f3701730bce56479a99.tar.gz
pies-bfc93d7aa82a05c493dd9f3701730bce56479a99.tar.bz2
Bugfix.
* src/progman.c (prog_stop): Access v.p.comp->flags only if the argument points to a component.
-rw-r--r--src/progman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/progman.c b/src/progman.c
index 843262e..c2b09c1 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -1849,7 +1849,7 @@ prog_stop (struct prog *prog, int sig)
}
}
debug (1, ("stopping %s (%lu)", prog->tag, (unsigned long) prog->pid));
- if (prog->v.p.comp->flags & CF_SIGGROUP)
+ if (prog->type == TYPE_COMPONENT && prog->v.p.comp->flags & CF_SIGGROUP)
kill (-prog->pid, sig);
else
kill (prog->pid, sig);

Return to:

Send suggestions and report system problems to the System administrator.