Skip to content

Add the Process Manager's process list - #52

Merged
colemancda merged 6 commits into
masterfrom
feature/process-manager
Dec 2, 2026
Merged

colemancda merged 6 commits into
masterfrom
feature/process-manager

Conversation

@colemancda

Copy link
Copy Markdown
Member

Adds ProcessManager to GraphiteCore, following a new Mac OS 9.2.2 capture.

Capture

ProcessManagerCapture.c (Retro68, PowerPC) records the program's own process serial number and GetProcessInformation record, the list GetNextProcess walks, the front process, SameProcess on the special serial numbers and the errors for numbers that name no process. Its output on Mac OS 9.2.2 under UTM is ProcessManager-macos-9.2.2-ppc.txt, unmodified. The README section lists what it showed.

Behavior

  • ProcessSerialNumber with kNoProcess (0), kSystemProcess (1) and kCurrentProcess (2).
  • GetNextProcess walks the host's list in launch order; kNoProcess gives the first, and the end, kCurrentProcess or an unknown number is procNotFound with kNoProcess left in the serial number.
  • GetProcessInformation takes kCurrentProcess as the caller; the other special numbers and unknown numbers are procNotFound, and a record length other than 60 is paramErr. Only a length of 4 was measured.
  • SameProcess never fails.
  • SetFrontProcess succeeds for a running process but the front process stays as it was until the host brings it forward.

ProcessManagerTests rebuilds the probe's output from ProcessManager and compares it with the capture line by line.

@colemancda
colemancda merged commit 99b699d into master Dec 2, 2026
3 checks passed
@colemancda
colemancda deleted the feature/process-manager branch December 2, 2026 04:34
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