Skip to content

Fix two close bugs in atomvm:subprocess/4#2297

Merged
bettio merged 1 commit into
atomvm:release-0.7from
pguyot:w19/fix-fd-close-subprocess
May 7, 2026
Merged

Fix two close bugs in atomvm:subprocess/4#2297
bettio merged 1 commit into
atomvm:release-0.7from
pguyot:w19/fix-fd-close-subprocess

Conversation

@pguyot
Copy link
Copy Markdown
Collaborator

@pguyot pguyot commented May 7, 2026

  • Fix POSIX_SPAWN_CLOEXEC_DEFAULT usage (was wrongly HAVE_* macro)
  • Fix close loop on platforms without closefrom (was starting from 3)

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

- Fix POSIX_SPAWN_CLOEXEC_DEFAULT usage (was wrongly HAVE_* macro)
- Fix close loop on platforms without closefrom (was starting from 3)

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@bettio bettio merged commit e1109bb into atomvm:release-0.7 May 7, 2026
215 of 225 checks passed
@pguyot pguyot deleted the w19/fix-fd-close-subprocess branch May 7, 2026 17:19
bettio added a commit that referenced this pull request May 14, 2026
Merge fixes, features, and improvements from release-0.7, including:
- Add UART support to RP2 platform (#2125)
- Fix uart:open/1,2 and gpio:open/0, gpio:start/0 API (#2258)
- Fix localtime/1 memory leak, use-after-free, and TZ restore bugs (#2291)
- Fix failure of lldb test on macOS 26 runner (#2296)
- Fix two close bugs in atomvm:subprocess/4 (#2297)
- CI: fix esp32c61 flappiness (#2298)
- STM32: add otp_crypto with mbedTLS (#2299)

uart:open/1,2 and gpio:open/0, gpio:start/0 now raise on failure
instead of returning {error, Reason}. Update any code that
pattern-matched the error tuple.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants