From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 31 18:20:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 56BA6EF4 for ; Wed, 31 Jul 2013 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1EF5B2121 for ; Wed, 31 Jul 2013 18:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6VIK0MU049749 for ; Wed, 31 Jul 2013 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6VIK0M3049739; Wed, 31 Jul 2013 18:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 31 Jul 2013 18:20:00 GMT Resent-Message-Id: <201307311820.r6VIK0M3049739@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuri Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EABA8AEF for ; Wed, 31 Jul 2013 18:15:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D891520EF for ; Wed, 31 Jul 2013 18:15:14 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6VIFEcK050829 for ; Wed, 31 Jul 2013 18:15:14 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6VIFE6D050639; Wed, 31 Jul 2013 18:15:14 GMT (envelope-from nobody) Message-Id: <201307311815.r6VIFE6D050639@oldred.freebsd.org> Date: Wed, 31 Jul 2013 18:15:14 GMT From: Yuri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/180976: [PATCH] Fixed vfork/rfork arguments in truss(1) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 18:20:01 -0000 >Number: 180976 >Category: misc >Synopsis: [PATCH] Fixed vfork/rfork arguments in truss(1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 31 18:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 9.1 >Organization: n/a >Environment: >Description: Currently truss shows vfork like this: 73278: vfork(0x622780,0x40d98e,0x801439408,0x80142f105,0x4,0x0) = 73279 (0x11e3f) >How-To-Repeat: >Fix: Patch attached with submission follows: Index: usr.bin/truss/syscalls.c =================================================================== --- usr.bin/truss/syscalls.c (revision 251126) +++ usr.bin/truss/syscalls.c (working copy) @@ -93,6 +93,9 @@ { .name = "fcntl", .ret_type = 1, .nargs = 3, .args = { { Int, 0 } , { Fcntl, 1 }, { Fcntlflag | OUT, 2 } } }, { .name = "fork", .ret_type = 1, .nargs = 0 }, + { .name = "vfork", .ret_type = 1, .nargs = 0 }, + { .name = "rfork", .ret_type = 1, .nargs = 1, }, + .args = { { Int, 0 } } }, { .name = "getegid", .ret_type = 1, .nargs = 0 }, { .name = "geteuid", .ret_type = 1, .nargs = 0 }, { .name = "getgid", .ret_type = 1, .nargs = 0 }, >Release-Note: >Audit-Trail: >Unformatted: