svn commit: r191004 - head/usr.bin/truss

Xin LI delphij at FreeBSD.org
Mon Apr 13 16:22:39 UTC 2009


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;
 	}
 }


More information about the svn-src-head mailing list