Date: Wed, 31 Jul 2013 18:15:14 GMT From: Yuri <yuri@tsoft.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/180976: [PATCH] Fixed vfork/rfork arguments in truss(1) Message-ID: <201307311815.r6VIFE6D050639@oldred.freebsd.org> Resent-Message-ID: <201307311820.r6VIK0M3049739@freefall.freebsd.org>
index | next in thread | raw e-mail
>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:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307311815.r6VIFE6D050639>
