Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2009 16:22:38 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191004 - head/usr.bin/truss
Message-ID:  <200904131622.n3DGMciN076976@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Apr 13 16:22:38 2009
New Revision: 191004
URL: http://svn.freebsd.org/changeset/base/191004

Log:
  Correct a bug where pr_data should have been assigned.

Modified:
  head/usr.bin/truss/setup.c

Modified: head/usr.bin/truss/setup.c
==============================================================================
--- head/usr.bin/truss/setup.c	Mon Apr 13 15:29:14 2009	(r191003)
+++ head/usr.bin/truss/setup.c	Mon Apr 13 16:22:38 2009	(r191004)
@@ -1,4 +1,4 @@
-/*
+/*-
  * Copryight 1997 Sean Eric Fagan
  *
  * Redistribution and use in source and binary forms, with or without
@@ -214,8 +214,8 @@ waitevent(struct trussinfo *info)
 		}
 	}
 	if (WIFSIGNALED(waitval)) {
-	        info->pr_why = S_EXIT;
-		info->pr_why = 0;
-                return;
+		info->pr_why = S_EXIT;
+		info->pr_data = 0;
+		return;
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904131622.n3DGMciN076976>