diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-18 07:40:22 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-18 07:40:22 -0800 |
commit | 92b16ade8e638180d53937890fd1f96a6594a72f (patch) | |
tree | 44c5a7d155f50129243100434bdf70aa8077dfc9 | |
parent | efe098695573938793f33442bec70e392b78bfb1 (diff) | |
download | autoconf213-92b16ade8e638180d53937890fd1f96a6594a72f.tar.gz autoconf213-92b16ade8e638180d53937890fd1f96a6594a72f.tar.bz2 autoconf213-92b16ade8e638180d53937890fd1f96a6594a72f.zip |
autoconf-2.13-wait3test
-rw-r--r-- | acspecific.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/acspecific.m4 b/acspecific.m4 index 178e79f..7114b25 100644 --- 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? */ |