busybox/shell/ash_test
Denys Vlasenko 9b67dde8cd ash: redir: Retry open on EINTR
Upstream commit:

    Date: Thu, 28 May 2020 21:31:45 +1000
    redir: Retry open64 on EINTR

    It is possible for open64 to block on named pipes, and therefore
    it can be interrupted by signals and return EINTR.  We should only
    let it fail with EINTR if real signals are pending (i.e., it should
    not fail on SIGCHLD if SIGCHLD has not been trapped).

    This patch adds a new helper sh_open to retry the open64 call if
    necessary.  It also calls sh_error when appropriate.

    Fixes: 3800d4934391 ("[JOBS] Fix dowait signal race")

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-08-09 20:17:31 +02:00
..
ash-alias ash: parser: Fix alias expansion after heredoc or newlines 2021-09-08 01:43:12 +02:00
ash-arith shell/math: bash-compatible handling of too large numbers 2023-06-25 17:42:05 +02:00
ash-comm shell: fix script's comm field if ENABLE_FEATURE_PREFER_APPLETS=y 2021-10-11 18:44:00 +02:00
ash-getopts hush: fix "getopts" builtin to not be upset by other builtins calling getopt() 2017-08-29 13:38:30 +02:00
ash-glob ash: expand: Do not quote backslashes in unquoted parameter expansion 2018-08-07 18:58:02 +02:00
ash-heredoc ash,hush: fix corner cases with backslash-newlines in heredocs 2025-08-07 01:30:57 +02:00
ash-invert
ash-misc hush: fix ELIF cmd1;cmd2 THEN ... not executing cmd2, closes 15571 2023-05-25 14:22:10 +02:00
ash-parsing hush: detect when terminating "done"/"fi" is missing 2024-02-25 17:53:25 +01:00
ash-psubst ash: LINENO starts from 0 in -c SCRIPT mode 2021-09-07 18:16:45 +02:00
ash-quoting ash: fix handling of single-quoted strings in pattern substitution 2024-02-26 16:27:53 +01:00
ash-read shell: improve bash compatibility of read built-in 2025-07-01 20:21:37 +02:00
ash-redir ash: redir: Retry open on EINTR 2025-08-09 20:17:31 +02:00
ash-signals ash: improve trap and jobs builtins in child shells 2023-03-31 14:22:56 +02:00
ash-standalone ash: fix nofork bug where environment is not properly passed to a command 2017-11-03 14:16:25 +01:00
ash-vars shells: fix a typo in var_backslash1.tests, expand it while at it 2025-08-09 13:00:55 +02:00
ash-z_slow hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
.gitignore ash_test: ignore generated files 2016-03-22 18:15:24 -04:00
printenv.c shell: improve bash compatibility of read built-in 2025-07-01 20:21:37 +02:00
recho.c shell: improve bash compatibility of read built-in 2025-07-01 20:21:37 +02:00
run-all shell: sync ash/hush test scripts 2023-06-14 15:19:02 +02:00
zecho.c whitespace cleanup 2010-10-29 11:46:52 +02:00