aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-01-08 16:10:34 +0000
committerRon Yorston <rmy@pobox.com>2019-01-08 16:10:34 +0000
commit6dc2b8c38716180323903c3266db4a5256739c4f (patch)
tree0a37366010ba52314145f2e85254275abeffe641 /win32
parent3476fb9f4c369b0f99bef7175aa4084ba771ebd7 (diff)
downloadbusybox-w32-6dc2b8c38716180323903c3266db4a5256739c4f.tar.gz
busybox-w32-6dc2b8c38716180323903c3266db4a5256739c4f.tar.bz2
busybox-w32-6dc2b8c38716180323903c3266db4a5256739c4f.zip
ps: fix long output when desktop compatibility is disabled
In desktop mode the state column is disabled and doesn't affect output. When desktop mode is disabled the state column is displayed in long output. Put some fake data in the column to improve the display.
Diffstat (limited to 'win32')
-rw-r--r--win32/process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/process.c b/win32/process.c
index 80f4550ad..7210934fe 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -487,6 +487,9 @@ UNUSED_PARAM
487 } 487 }
488 488
489 memset(&sp->vsz, 0, sizeof(*sp) - offsetof(procps_status_t, vsz)); 489 memset(&sp->vsz, 0, sizeof(*sp) - offsetof(procps_status_t, vsz));
490#if !ENABLE_DESKTOP
491 strcpy(sp->state, " ");
492#endif
490 493
491#if ENABLE_FEATURE_PS_TIME || ENABLE_FEATURE_PS_LONG 494#if ENABLE_FEATURE_PS_TIME || ENABLE_FEATURE_PS_LONG
492 if (flags & (PSSCAN_STIME|PSSCAN_UTIME|PSSCAN_START_TIME)) { 495 if (flags & (PSSCAN_STIME|PSSCAN_UTIME|PSSCAN_START_TIME)) {