Skip to content

Implement /proc/<pid>/exe#259

Merged
hexagonal-sun merged 1 commit intohexagonal-sun:masterfrom
arihant2math:proc-exe
Mar 18, 2026
Merged

Implement /proc/<pid>/exe#259
hexagonal-sun merged 1 commit intohexagonal-sun:masterfrom
arihant2math:proc-exe

Conversation

@arihant2math
Copy link
Collaborator

Used by zig.

@arihant2math arihant2math changed the title Implement /proc/<pid>/exe Implement /proc/<pid>/exe Mar 12, 2026
next_tid: AtomicU32::new(1),
state: SpinLock::new(ProcessState::Running),
tasks: SpinLock::new(BTreeMap::new()),
executable: SpinLock::new(None),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see where during a clone() the new child process would copy the executable from it's parent. I think during a fork() the executable would be set to None.

Copy link
Owner

@hexagonal-sun hexagonal-sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hexagonal-sun hexagonal-sun merged commit a8aef04 into hexagonal-sun:master Mar 18, 2026
4 checks passed
@arihant2math arihant2math deleted the proc-exe branch March 18, 2026 07:08
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