Skip to content

docs(debt): update the console and random device entries to current main - #3849

Merged
adriadam10 merged 2 commits into
boykopovar:mainfrom
LeandroLP23:docs/debt-windows-gui-console
Oct 12, 2026
Merged

adriadam10 merged 2 commits into
boykopovar:mainfrom
LeandroLP23:docs/debt-windows-gui-console

Conversation

@LeandroLP23

@LeandroLP23 LeandroLP23 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What

Two TechnicalDebt entries describe behaviour main no longer has. Doc-only.

  • Relinked executable opens a console. Since 908befe, --windows-gui selects the GUI subsystem (documented in docs/user/USAGE.md). The entry now says that the console is the default, and that a GUI build started from Explorer loses its output, as Windows: keep the output of an executable started without standard handles in anyps5.log #3282 describes.

  • /dev/random and /dev/urandom. The entry still says that a duped descriptor reads as an empty file and that select sees the null device. In fact:

    • dup and dup2 carry the random device over to the new descriptor (File/src/Stdio.cpp, File::RememberRandomDevice).
    • select reports both devices ready (Socket/src/Socket.cpp), as the select entry already says.

    Those two clauses are dropped. The fstat, lseek and mmap clauses stay, as those calls still see the null device.

Tested

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the docs label Oct 11, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 11, 2026
@LeandroLP23
LeandroLP23 force-pushed the docs/debt-windows-gui-console branch from c448c4e to 436e310 Compare October 12, 2026 07:54
@LeandroLP23 LeandroLP23 reopened this Oct 12, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 12, 2026
@LeandroLP23
LeandroLP23 force-pushed the docs/debt-windows-gui-console branch from 0bfda1b to c89565b Compare October 12, 2026 09:30
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 12, 2026
@LeandroLP23

Copy link
Copy Markdown
Contributor Author

@MarcZX100 #4237 adds its entry on the line after this PR's console entry in TechnicalDebt.md, so whichever merges second hits a one-line conflict. Neither depends on the other. If #4237 goes in first, I'll rebase this one.

LeandroLP23 and others added 2 commits October 12, 2026 21:02
…entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dup and dup2 carry the random device over to the new descriptor, and
select reports /dev/random and /dev/urandom ready, as the select entry
already says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LeandroLP23
LeandroLP23 force-pushed the docs/debt-windows-gui-console branch from c89565b to 67c943f Compare October 12, 2026 19:02
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4237 docs/dev/debt/relinker.md L6

@adriadam10

Copy link
Copy Markdown
Collaborator

Re-checked after the rebase onto the split debt files: --windows-gui (docs/user/USAGE.md), dup/dup2 carrying the random device (Stdio.cpp), select reporting it ready (Socket.cpp, and its own entry), and fstat/lseek/mmap still seeing the null device. Docs only; merging.

@adriadam10
adriadam10 merged commit 52c9b65 into boykopovar:main Oct 12, 2026
7 checks passed
@LeandroLP23
LeandroLP23 deleted the docs/debt-windows-gui-console branch October 13, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants