diff options
Diffstat (limited to 'jobs.c')
-rw-r--r-- | jobs.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -840,6 +840,8 @@ j_resume(cp, bg) shprintf("[%d] ", j->job); running = 0; + if (writefd) + dprintf(writefd, "cmd"); for (p = j->proc_list; p != (Proc *) 0; p = p->next) { if (p->state == PSTOPPED) { p->state = PRUNNING; @@ -847,9 +849,14 @@ j_resume(cp, bg) running = 1; } shprintf("%s%s", p->command, p->next ? "| " : null); + if (writefd) + dprintf(writefd, "%s%s", + p->command, p->next ? "| " : null); } shprintf("%s", newline); shf_flush(shl_stdout); + if (writefd) + dprintf(writefd, "\n"); if (running) j->state = PRUNNING; |