projects
/
platform
/
upstream
/
autoconf213.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efe0986
)
autoconf-2.13-wait3test
author
Anas Nashif
<anas.nashif@intel.com>
Sun, 18 Nov 2012 15:40:22 +0000
(07:40 -0800)
committer
Anas Nashif
<anas.nashif@intel.com>
Sun, 18 Nov 2012 15:40:22 +0000
(07:40 -0800)
acspecific.m4
patch
|
blob
|
history
diff --git
a/acspecific.m4
b/acspecific.m4
index
178e79f
..
7114b25
100644
(file)
--- a/
acspecific.m4
+++ b/
acspecific.m4
@@
-1419,6
+1419,8
@@
main() {
r.ru_majflt = r.ru_minflt = 0;
switch (fork()) {
case 0: /* Child. */
+ /* Unless we actually _do_ something, the kernel sometimes doesn't chalk up any system time to this process. */
+ if(fork()) { i = 123; wait(NULL); } else { i = 234; exit(0); }
sleep(1); /* Give up the CPU. */
_exit(0);
case -1: _exit(0); /* What can we do? */