Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-03-13 13:26:58 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-03-13 13:26:58 +0300
commit111b34bb1b1718e815ea95d19630cea4cab1ddf5 (patch)
tree7df486246e5d73ba1cf2bf006ddf5638402bb9a7
parent1def2148d25fec8a150e5eac873d8ef4a0c71a50 (diff)
Cygwin: proc: add missing LF to /proc/<PID>/stat output
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/fhandler_process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 31cd50700..44410b223 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,