fix: randomize run_rc marker to avoid output collision #19
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-lua-common#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Reduce collision risk for the exit-code marker in
sys:run_rc().Current state
The marker
__DAW_RC__:is a fixed string. If a command happens tooutput this exact string, the exit code parsing breaks silently.
Proposed fix
Generate a random suffix per call so the marker is unique at runtime:
Full stdout and stderr separation via tmpfile was considered but
rejected -- filesystem overhead per call is not justified here.
See also
Marker is now DAW_RC<random 6-digit>_: per call, matching the fix proposed in the issue. Verified run_rc still parses exit codes correctly for both success and non-zero exit under 5.1 and 5.4.