Initialize all task->status fields.
authorAndre Noll <maan@systemlinux.org>
Thu, 3 Mar 2011 18:43:07 +0000 (19:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 3 Mar 2011 18:43:07 +0000 (19:43 +0100)
Does not matter unless SCHED_DEBUG is enabled, but still..

afs.c
server.c
vss.c

diff --git a/afs.c b/afs.c
index 2fb28b7..c2fd6d5 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -951,7 +951,7 @@ static void register_command_task(uint32_t cookie)
 
        ct->task.pre_select = command_pre_select;
        ct->task.post_select = command_post_select;
-       sprintf(ct->task.status, "command task");
+       sprintf(ct->task.status, "afs command task");
        register_task(&ct->task);
 }
 
index 849b707..35d6f19 100644 (file)
--- a/server.c
+++ b/server.c
@@ -426,6 +426,7 @@ static void init_server_command_task(int argc, char **argv)
        if (ret < 0)
                goto err;
        add_close_on_fork_list(sct->listen_fd); /* child doesn't need the listener */
+       sprintf(sct->task.status, "server command task");
        register_task(&sct->task);
        return;
 err:
diff --git a/vss.c b/vss.c
index 916a71d..78f8bab 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -1146,5 +1146,6 @@ void init_vss_task(int afs_socket)
                tv_add(&vsst->autoplay_barrier, &vsst->announce_tv,
                        &vsst->data_send_barrier);
        }
+       sprintf(vsst->task.status, "vss task");
        register_task(&vsst->task);
 }