diff options
Diffstat (limited to 'cmd-server-info.c')
-rw-r--r-- | cmd-server-info.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c index b4cce636..4107527b 100644 --- a/cmd-server-info.c +++ b/cmd-server-info.c @@ -56,6 +56,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) struct tty_code *code; struct tty_term_code_entry *ent; struct utsname un; + struct job *job; struct grid *gd; struct grid_line *gl; u_int i, j, k; @@ -178,5 +179,11 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) } ctx->print(ctx, "%s", ""); + ctx->print(ctx, "Jobs:"); + SLIST_FOREACH(job, &all_jobs, lentry) { + ctx->print(ctx, "%s [fd=%d, pid=%d, status=%d, flags=0x%x]", + job->cmd, job->fd, job->pid, job->status, job->flags); + } + return (0); } |