-;;; Compact subhost repear program to merely wait for children to
-;;; "reap" them, i.e. let them exit.
+;;; This is a "repear" program that merely waits for child processes
+;;; to appear and "reap" them, i.e. read their exit status to let them
+;;; exit. The program allows an arbitrary first argument that is
+;;; indended for identifying the reaper process.
format elf64 executable
entry main
;;; siginfo_t status -- all ignored
status: rept 16 { dq 0 }
-
status$end:
;;; A code segment
mov rdi, rax
mov rax, qword 60
syscall ; exit program
+
+;;; The rest of memory is not executable
+ segment readable writable