aboutsummaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2009-05-21 18:59:41 +0200
committerJuan Cespedes <cespedes@debian.org>2009-05-21 18:59:41 +0200
commitc693f02a01835a6fc603212d323a364a22a4fa26 (patch)
treefd99677e8395fc1b26c0e7d50dd4f7312d640046 /output.c
parente0660df7f943cc832694db3b8b6778c0ff65860d (diff)
downloadltrace-c693f02a01835a6fc603212d323a364a22a4fa26.tar.gz
Prepare for new Debian release
Diffstat (limited to 'output.c')
-rw-r--r--output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/output.c b/output.c
index 792a922..2021ecd 100644
--- a/output.c
+++ b/output.c
@@ -40,7 +40,9 @@ begin_of_line(enum tof type, Process *proc) {
if (!proc) {
return;
}
- if (list_of_processes->next) {
+ if ((options.output != stderr) && (opt_p || options.follow)) {
+ current_column += fprintf(options.output, "%u ", proc->pid);
+ } else if (list_of_processes->next) {
current_column += fprintf(options.output, "[pid %u] ", proc->pid);
}
if (opt_r) {