]> granicus.if.org Git - strace/commitdiff
2004-02-19 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 20 Feb 2004 02:23:52 +0000 (02:23 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 20 Feb 2004 02:23:52 +0000 (02:23 +0000)
* strace.c (main): Use TCP->pid, not PID, in -p message.
Fixes Debian bug #229802.

strace.c

index 9f287f7e7d6a2623819ce5fbc925c240edb922eb..3f42b3c3293f1eaf4a8635c0a27f04b655b8853d 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -408,7 +408,7 @@ char *argv[];
                if (!qflag)
                        fprintf(stderr,
                                "Process %u attached - interrupt to quit\n",
-                               pid);
+                               tcp->pid);
        }
 
        if (!pflag_seen) {