| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
spawn() returns before the child is registered, and under load the ps
in the next command found no process at all (FSUMA904), which made the
test report a failure that was really a race. Look for the child up to
five times, and skip the test where it never appears.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
/bin/sh has the sticky bit on z/OS, so spawn() must give it a new
address space even with _BPX_SHAREAS=YES (documented by the z/OS C
runtime library). The old test therefore reported a failure for both
zash and /bin/sh itself. Spawn /bin/sleep instead, which is not sticky,
and ask ps for its address space id while it is alive. This also
removes the temp-file workaround for the grandchild ps pipe problem.
The separate C spawn() probe confirms that envp is honoured regardless
of the caller's environment, as the runtime reference specifies; zash's
child receives the requested variable and address space.
|
| |
|
|
|
|
| |
ps cannot write to a pipe the shell created when it runs two spawns down
(issue #1), so the children write their id and the shell reads it back.
The fork case keeps a ps inside the subshell.
|
|
|
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written
in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS).
- Parser, expansion, arithmetic, redirection, traps and builtins.
- Spawn-first execution: fd plans instead of fork+dup2, in-shell pure
builtins for pipelines and command substitution, $(a | b) without a
subshell.
- Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets.
- Tests: posix (dash-generated), zash, process accounting, linux, zos.
Nothing has been compiled or run on z/OS yet.
|