projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf76e7
)
sched: Log task termination status.
author
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 29 Oct 2016 20:23:14 +0000
(22:23 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Wed, 28 Dec 2016 14:16:05 +0000
(15:16 +0100)
This is generally useful information, so let's include it in the
log message.
sched.c
patch
|
blob
|
history
diff --git
a/sched.c
b/sched.c
index
1db9169
..
bc30177
100644
(file)
--- a/
sched.c
+++ b/
sched.c
@@
-66,7
+66,10
@@
static void sched_preselect(struct sched *s)
static void unlink_and_free_task(struct task *t)
{
- PARA_INFO_LOG("freeing task %s\n", t->name);
+ PARA_INFO_LOG("freeing task %s (%s)\n", t->name, t->status < 0?
+ para_strerror(-t->status) :
+ (t->status == TS_DEAD? "[dead]" : "[running]"));
+
list_del(&t->node);
free(t->name);
free(t);