tests/vfork-f.c: support platforms without vfork

On some platforms, e.g. hppa glibc, vfork() is implemented using fork
syscall, so the test cannot rely on the parent process remaining blocked
until the child process either terminates or calls execve.

* tests/vfork-f.c (main): Explicitly block the parent until the child
either terminates or calls execve.
1 file changed
tree: 185f7cd264462334de47c475a7c17323c1025cde
  1. .gitignore
  2. .mailmap
  3. .travis.yml
  4. AUTHORS
  5. COPYING
  6. CREDITS.in
  7. ChangeLog-CVS
  8. HACKING-scripts
  9. INSTALL
  10. Makefile.am
  11. NEWS
  12. README
  13. README-hacking
  14. README-linux-ptrace
  15. README-mpers
  16. access.c
  17. affinity.c
  18. aio.c
  19. bjm.c
  20. block.c
  21. bootstrap
  22. bpf.c
  23. build_static_example.sh
  24. cacheflush.c
  25. capability.c
  26. caps0.h
  27. caps1.h
  28. chdir.c
  29. chmod.c
  30. clone.c
  31. configure.ac
  32. count.c
  33. debian/
  34. defs.h
  35. desc.c
  36. dirent.c
  37. dirent64.c
  38. empty.h
  39. epoll.c
  40. errnoent.sh
  41. evdev.c
  42. eventfd.c
  43. execve.c
  44. exit.c
  45. fadvise.c
  46. fallocate.c
  47. fanotify.c
  48. fchownat.c
  49. fcntl.c
  50. fetch_seccomp_fprog.c
  51. fetch_struct_flock.c
  52. file.c
  53. file_handle.c
  54. flock.c
  55. flock.h
  56. futex.c
  57. gcc_compat.h
  58. generate_mpers_am.sh
  59. generate_sen.sh
  60. generate_xlat_in.sh
  61. get_robust_list.c
  62. getcpu.c
  63. getcwd.c
  64. getrandom.c
  65. git-set-file-times
  66. git-version-gen
  67. gitlog-to-changelog
  68. hostname.c
  69. inotify.c
  70. io.c
  71. ioctl.c
  72. ioctlsort.c
  73. ioperm.c
  74. iopl.c
  75. ioprio.c
  76. ipc_defs.h
  77. ipc_msg.c
  78. ipc_msgctl.c
  79. ipc_sem.c
  80. ipc_shm.c
  81. ipc_shmctl.c
  82. kcmp.c
  83. kernel_types.h
  84. kexec.c
  85. keyctl.c
  86. ldt.c
  87. link.c
  88. linux/
  89. lookup_dcookie.c
  90. loop.c
  91. lseek.c
  92. m4/
  93. maint/
  94. make-dist
  95. mem.c
  96. membarrier.c
  97. memfd_create.c
  98. mknod.c
  99. mount.c
  100. mpers.awk
  101. mpers.sh
  102. mpers_test.sh
  103. mpers_type.h
  104. mq.c
  105. mtd.c
  106. native_defs.h
  107. net.c
  108. open.c
  109. or1k_atomic.c
  110. pathtrace.c
  111. perf.c
  112. personality.c
  113. poll.c
  114. prctl.c
  115. print_mq_attr.c
  116. print_msgbuf.c
  117. print_sigevent.c
  118. print_time.c
  119. print_timex.c
  120. printmode.c
  121. printrusage.c
  122. printsiginfo.c
  123. printsiginfo.h
  124. printstat.h
  125. process.c
  126. process_vm.c
  127. ptp.c
  128. ptrace.h
  129. qemu_multiarch_testing/
  130. quota.c
  131. readahead.c
  132. readlink.c
  133. reboot.c
  134. regs.h
  135. renameat.c
  136. resource.c
  137. rtc.c
  138. sched.c
  139. scsi.c
  140. seccomp.c
  141. seccomp_fprog.h
  142. sendfile.c
  143. sigaltstack.c
  144. signal.c
  145. signalent.sh
  146. signalfd.c
  147. sigreturn.c
  148. sock.c
  149. socketutils.c
  150. sram_alloc.c
  151. statfs.c
  152. strace-graph
  153. strace-log-merge
  154. strace.1
  155. strace.c
  156. strace.spec
  157. swapon.c
  158. sync_file_range.c
  159. syscall.c
  160. syscallent.sh
  161. sysctl.c
  162. sysinfo.c
  163. syslog.c
  164. sysmips.c
  165. term.c
  166. test/
  167. tests/
  168. time.c
  169. times.c
  170. travis-ci.sh
  171. truncate.c
  172. uid.c
  173. uid16.c
  174. umask.c
  175. umount.c
  176. uname.c
  177. unwind.c
  178. userfaultfd.c
  179. util.c
  180. utime.c
  181. utimes.c
  182. v4l2.c
  183. vsprintf.c
  184. wait.c
  185. xattr.c
  186. xlat/
  187. xlate.el
  188. xmalloc.c