summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-04-13 16:22:38 +0000
committerdelphij <delphij@FreeBSD.org>2009-04-13 16:22:38 +0000
commit882a2894c360c6d9b7355f9bfc039e76cfb83b53 (patch)
tree0624522fbf5851aee0dc18bf06e994912dc5e21f /usr.bin
parent046632243da79b9ecf5003205a8fcb759c532a61 (diff)
downloadFreeBSD-src-882a2894c360c6d9b7355f9bfc039e76cfb83b53.zip
FreeBSD-src-882a2894c360c6d9b7355f9bfc039e76cfb83b53.tar.gz
Correct a bug where pr_data should have been assigned.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/truss/setup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/truss/setup.c b/usr.bin/truss/setup.c
index aa1c770..53a6fe1 100644
--- a/usr.bin/truss/setup.c
+++ b/usr.bin/truss/setup.c
@@ -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;
}
}
OpenPOWER on IntegriCloud