Skip to content

feat(proc): added envp plumbing through proc_create - #138

Merged
FlareCoding merged 1 commit into
masterfrom
pr/proc-envp
Jul 30, 2026
Merged

feat(proc): added envp plumbing through proc_create#138
FlareCoding merged 1 commit into
masterfrom
pr/proc-envp

Conversation

@FlareCoding

Copy link
Copy Markdown
Owner

Summary

  • Programs like Vim need TERM and HOME, but the kernel wrote an empty envp block and had no way to carry environment into a child.
  • proc_create gains an envp argument copied with the same bounded limits as argv, now shared constants (MAX_ARG_STRLEN, MAX_ARG_STRINGS) between the copy path and the stack builder so the two can never drift.
  • libstlx proc_create passes the caller's environ through (inheritance by default, matching cwd and stdio), with proc_create_with_env for explicit control. The kernel never invents environment values.

Made with Cursor

cursor[bot]

This comment was marked as resolved.

@FlareCoding
FlareCoding merged commit 13e7419 into master Jul 30, 2026
19 checks passed
@FlareCoding
FlareCoding deleted the pr/proc-envp branch July 30, 2026 19:41
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.

1 participant