aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index adab63fa7..e45c8d61d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -16842,8 +16842,10 @@ jobtab_copy(void)
16842 xasprintf("jobtab[%d].ps0.ps_cmd '%s'", 16842 xasprintf("jobtab[%d].ps0.ps_cmd '%s'",
16843 i, jobtab[i].ps0.ps_cmd), FREE); 16843 i, jobtab[i].ps0.ps_cmd), FREE);
16844 new[i].ps = &new[i].ps0; 16844 new[i].ps = &new[i].ps0;
16845 } else { 16845 } else if (jobtab[i].nprocs) {
16846 new[i].ps = procstat_copy(i); 16846 new[i].ps = procstat_copy(i);
16847 } else {
16848 new[i].ps = NULL;
16847 } 16849 }
16848 SAVE_PTR(new[i].ps, xasprintf("jobtab[%d].ps", i), FREE); 16850 SAVE_PTR(new[i].ps, xasprintf("jobtab[%d].ps", i), FREE);
16849 16851