hush/shell
Stephen Heumann 468751ba5f Switch the vfork implementation to use procrecvtim() for waiting, and not signal the parent from the child.
This avoids a problem where one of the SIGALRM signals could be delivered after the original SIGALRM handler was restored, which would normally cause the process to terminate.

For now, we just rely on polling in a loop to determine when the child is done. This isn't optimal, but should be OK. If procsend() worked, we could use that in the child to signal the parent. However, procsend() is broken in GNO 2.0.6 -- it seems that it actually tries to invoke the send() call for sockets, but with the wrong arguments, leading to a crash.
2014-12-01 21:05:13 -06:00
..
hush_test hush: make ${#var} unicode-aware 2014-08-13 09:57:44 +02:00
fnmatch.c Add our own implementation of fnmatch (taken from NetBSD), because the one in GNO 2.0.6's libc is broken. 2014-11-18 20:51:04 -06:00
glob.c In glob, factor out "stat" call and structure to a separate function. This reduces stack usage in the recursive glob function. 2014-11-20 21:08:21 -06:00
glob.h Include glob implementation from dietlibc. 2014-11-01 14:27:52 -05:00
hush.c Switch the vfork implementation to use procrecvtim() for waiting, and not signal the parent from the child. 2014-12-01 21:05:13 -06:00
hushleaktool.sh Move all the source files to 15-character ProDOS-compatible file names. 2014-11-02 22:11:07 -06:00
match.c shell/match.c: shrink by dropping double bool inversion 2010-09-12 15:06:42 +02:00
match.h Miscellaneous changes for ORCA/C and GNO compatibility, mainly removing C99isms. 2014-11-01 09:46:02 -05:00
math.c Merge commit 'f5add44981b43490376ea0dfed1420dba09a3a75' 2014-11-19 18:49:57 -06:00
math.h move endofname() to libbb 2013-02-26 00:36:53 +01:00
random.c More GNO and ORCA/C compatibility fixes. 2014-11-01 18:25:21 -05:00
random.h ash,hush: improve randomness of $RANDOM, add easy-ish way to test it 2014-03-13 12:52:43 +01:00
shell.common.c In redirection operations, map fds 0/1/2 to 1/2/3 so they work as stdin/stdout/stderr, preserving compatibility with Unix shell scripts. 2014-11-20 23:12:01 -06:00
shell.common.h Move all the source files to 15-character ProDOS-compatible file names. 2014-11-02 22:11:07 -06:00