[newlib-cygwin] Cygwin: proc: add missing LF to /proc/<PID>/stat output
Corinna Vinschen
corinna@sourceware.org
Wed Mar 13 10:27:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=111b34bb1b1718e815ea95d19630cea4cab1ddf5
commit 111b34bb1b1718e815ea95d19630cea4cab1ddf5
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Wed Mar 13 11:26:58 2019 +0100
Cygwin: proc: add missing LF to /proc/<PID>/stat output
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/fhandler_process.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 31cd507..44410b2 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -1160,7 +1160,7 @@ format_process_stat (void *data, char *&destbuf)
"%u %lu %lu %u %u %lu %lu "
"%U %U %d %d %d %d "
"%U %lu "
- "%ld %lu",
+ "%ld %lu\n",
p->pid, cmd, state,
p->ppid, p->pgid, p->sid, p->ctty, -1,
0, fault_count, fault_count, 0, 0, utime, stime,
More information about the Cygwin-cvs
mailing list