# head -n 1000 /tmp/strace.log execve("/bin/bash", ["bash", "/tmp/test2.sh"], 0x7ffca07f53a8 /* 34 vars */) = 0 arch_prctl(ARCH_SET_FS, 0x7fc4481d1a88) = 0 set_tid_address(0x7fc4481d2034) = 26734 brk(NULL) = 0x557721ba8000 brk(0x557721baa000) = 0x557721baa000 mmap(0x557721ba8000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x557721ba8000 open("/etc/ld-musl-x86_64.path", O_RDONLY|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448121000 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 read(3, "/usr/lib/gcc/x86_64-gentoo-linux"..., 1024) = 91 read(3, "", 1024) = 0 close(3) = 0 munmap(0x7fc448121000, 4096) = 0 open("/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/libreadline.so.8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/libreadline.so.8", O_RDONLY|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0755, st_size=326248, ...}) = 0 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260x\1\0\0\0\0\0"..., 960) = 960 mmap(NULL, 335872, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc4480d0000 mmap(0x7fc4480e6000, 163840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x16000) = 0x7fc4480e6000 mmap(0x7fc44810e000, 36864, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0x3e000) = 0x7fc44810e000 mmap(0x7fc448118000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x47000) = 0x7fc448118000 mmap(0x7fc448121000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc448121000 close(3) = 0 open("/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0755, st_size=244544, ...}) = 0 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\374\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 249856, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc448093000 mmap(0x7fc4480a2000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x7fc4480a2000 mmap(0x7fc4480ba000, 65536, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0x27000) = 0x7fc4480ba000 mmap(0x7fc4480cb000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x37000) = 0x7fc4480cb000 close(3) = 0 open("/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/libtinfow.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/libtinfow.so.6", O_RDONLY|O_CLOEXEC) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0755, st_size=244576, ...}) = 0 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\375\0\0\0\0\0\0"..., 960) = 960 mmap(NULL, 249856, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc448056000 mmap(0x7fc448065000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x7fc448065000 mmap(0x7fc44807d000, 65536, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0x27000) = 0x7fc44807d000 mmap(0x7fc44808e000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x37000) = 0x7fc44808e000 close(3) = 0 mprotect(0x7fc448118000, 12288, PROT_READ) = 0 mprotect(0x7fc4480cb000, 16384, PROT_READ) = 0 mprotect(0x7fc4481ce000, 4096, PROT_READ) = 0 mprotect(0x7fc44808e000, 16384, PROT_READ) = 0 mprotect(0x5577215d8000, 12288, PROT_READ) = 0 open("/dev/tty", O_RDWR|O_NONBLOCK) = 3 close(3) = 0 getuid() = 0 getgid() = 0 geteuid() = 0 getegid() = 0 rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0 ioctl(-1, TIOCGPGRP, 0x7ffeb5d85cbc) = -1 EBADF (Bad file descriptor) rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigaction(SIGQUIT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc448196093}, 8) = 0 uname({sysname="Linux", nodename="grunt", ...}) = 0 mmap(NULL, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44804f000 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44804b000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44804a000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448049000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448048000 stat("/var/embedded", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0 stat(".", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0 stat("/var", {st_mode=S_IFDIR|0755, st_size=141, ...}) = 0 stat("/var/embedded", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0 stat("/var/embedded/portage/repos/tpb", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 getpid() = 26734 getppid() = 26731 stat(".", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0 stat("/usr/local/sbin/bash", 0x7ffeb5d85870) = -1 ENOENT (No such file or directory) stat("/usr/local/bin/bash", 0x7ffeb5d85870) = -1 ENOENT (No such file or directory) stat("/usr/sbin/bash", 0x7ffeb5d85870) = -1 ENOENT (No such file or directory) stat("/usr/bin/bash", 0x7ffeb5d85870) = -1 ENOENT (No such file or directory) stat("/sbin/bash", 0x7ffeb5d85870) = -1 ENOENT (No such file or directory) stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=813120, ...}) = 0 getuid() = 0 geteuid() = 0 getgid() = 0 getegid() = 0 faccessat(AT_FDCWD, "/bin/bash", X_OK) = 0 getuid() = 0 geteuid() = 0 getgid() = 0 getegid() = 0 faccessat(AT_FDCWD, "/bin/bash", R_OK) = 0 stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=813120, ...}) = 0 getuid() = 0 geteuid() = 0 getgid() = 0 getegid() = 0 faccessat(AT_FDCWD, "/bin/bash", X_OK) = 0 getuid() = 0 geteuid() = 0 getgid() = 0 getegid() = 0 faccessat(AT_FDCWD, "/bin/bash", R_OK) = 0 getpid() = 26734 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448047000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448046000 getpgid(0) = 26731 ioctl(2, TIOCGPGRP, 0x7ffeb5d85b7c) = -1 ENOTTY (Not a tty) rt_sigprocmask(SIG_UNBLOCK, [RT_1 RT_2], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 ioctl(2, TIOCGPGRP, 0x7ffeb5d85b5c) = -1 ENOTTY (Not a tty) prlimit64(0, RLIMIT_NPROC, NULL, {rlim_cur=256881, rlim_max=256881}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448045000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448044000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448043000 rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448042000 open("/tmp/test2.sh", O_RDONLY) = 3 stat("/tmp/test2.sh", {st_mode=S_IFREG|0644, st_size=89, ...}) = 0 ioctl(3, TIOCGWINSZ, 0x7ffeb5d85cc8) = -1 ENOTTY (Not a tty) lseek(3, 0, SEEK_CUR) = 0 read(3, "while read d < <(find /tmp/test "..., 80) = 80 lseek(3, 0, SEEK_SET) = 0 prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0 fcntl(255, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 255) = 255 close(3) = 0 fcntl(255, F_SETFD, FD_CLOEXEC) = 0 fcntl(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fstat(255, {st_mode=S_IFREG|0644, st_size=89, ...}) = 0 lseek(255, 0, SEEK_CUR) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc448040000 read(255, "while read d < <(find /tmp/test "..., 89) = 89 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=4*1024}) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26735 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26735, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26735 wait4(-1, 0x7ffeb5d85090, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803f000 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26737 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26737, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26737 wait4(-1, 0x7ffeb5d85310, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803e000 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26739 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26739, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26739 wait4(-1, 0x7ffeb5d85090, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26741 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26741, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26741 wait4(-1, 0x7ffeb5d84f10, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 12 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26743 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26743, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26743 wait4(-1, 0x7ffeb5d852d0, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 14 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26745 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26745, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26745 wait4(-1, 0x7ffeb5d85290, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 99 brk(0x557721bab000) = 0x557721bab000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803d000 munmap(0x7fc44803d000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803d000 munmap(0x7fc44803d000, 4096) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803d000 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26747 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26747, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26747 wait4(-1, 0x7ffeb5d85150, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26749 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26749, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26749 wait4(-1, 0x7ffeb5d85090, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26751 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26751, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26751 wait4(-1, 0x7ffeb5d852d0, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26753 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26753, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26753 wait4(-1, 0x7ffeb5d85090, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26755 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26755, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26755 wait4(-1, 0x7ffeb5d85090, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26757 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26757, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26757 wait4(-1, 0x7ffeb5d85090, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26759 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26759, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26759 wait4(-1, 0x7ffeb5d852d0, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26761 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26761, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26761 wait4(-1, 0x7ffeb5d852d0, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 1 close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26763 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26763, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26763 wait4(-1, 0x7ffeb5d85310, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(3, 63) = 63 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [INT CHLD], 8) = 0 fork() = 26765 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGCHLD, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, {sa_handler=0x557721551190, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc448196093}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(4) = 0 open("/dev/fd/63", O_RDONLY) = 3 fcntl(0, F_GETFD) = 0 fcntl(0, F_DUPFD, 10) = 10 fcntl(0, F_GETFD) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 0) = 0 close(3) = 0 ioctl(0, TIOCGWINSZ, 0x7ffeb5d85718) = -1 ENOTTY (Not a tty) lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Invalid seek) read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "m", 1) = 1 read(0, "p", 1) = 1 read(0, "/", 1) = 1 read(0, "t", 1) = 1 read(0, "e", 1) = 1 read(0, "s", 1) = 1 read(0, "t", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "/", 1) = 1 read(0, "a", 1) = 1 read(0, "\n", 1) = 1 dup2(10, 0) = 0 fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 close(63) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 writev(1, [{iov_base="/tmp/test/a/a", iov_len=13}, {iov_base="\n", iov_len=1}], 2/tmp/test/a/a ) = 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26765, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 26765 wait4(-1, 0x7ffeb5d852d0, WNOHANG, NULL) = -1 ECHILD (No child process) rt_sigreturn({mask=[]}) = 14 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc44803c000 munmap(0x7fc44803c000, 4096) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 pipe([3, 4]) = 0