diff options
author | Ron Yorston <rmy@pobox.com> | 2019-01-08 16:10:34 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-01-08 16:10:34 +0000 |
commit | 6dc2b8c38716180323903c3266db4a5256739c4f (patch) | |
tree | 0a37366010ba52314145f2e85254275abeffe641 /win32 | |
parent | 3476fb9f4c369b0f99bef7175aa4084ba771ebd7 (diff) | |
download | busybox-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.c | 3 |
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)) { |