[PATCH 1/1] fhandler_process.cc(format_process_stat): fix /proc/pid/stat issues

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Tue May 10 14:44:42 GMT 2022


fix tty_nr maj/min bits, vmmaxrss units, and x86 format mismatch:
ctty maj is 31:16, min is 15:0; tty_nr s/b maj 15:8, min 31:20, 7:0;
vmmaxrss s/b bytes not pages;
times all 64 bit - change formats of first two instances from %lu to %U;
realign sprintf formats and variables/values in more logical groups
---
 winsup/cygwin/fhandler_process.cc | 33 +++++++++++++++++++------------
 1 file changed, 20 insertions(+), 13 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fhandler_process.cc-format_process_stat-fix-proc-pid-stat-issues.patch
Type: text/x-patch
Size: 2048 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin-patches/attachments/20220510/f7edf665/attachment.bin>


More information about the Cygwin-patches mailing list