[roll] Roll fuchsia [starnix] Pass Pid to set_foreground_process_group

Update ThreadGroup::set_foreground_process_group and
SessionMutableState::set_foreground_process_group to accept a &Pid
reference rather than primitive pid_t or &Arc<ProcessGroup>.

In devpts TIOCSPGRP, validate that the requested pgid is non-negative
and resolve it from the kernel's PidTable before calling
set_foreground_process_group. ThreadGroup::set_foreground_process_group
retrieves the process group directly via Pid::get_process_group()
while keeping the kernel.pids read lock to ensure atomicity against
concurrent process group updates or exits.

Multiply: starnix_core_tests
Test: fx test starnix_core_tests --test-filter "*devpts*"
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1810549
Original-Original-Revision: 66fb1fdd9b9ef5c90e74ae59188225f9d976f0a2
GitOrigin-RevId: e16d05ad45ac471d75838226b3f2917a330e63fe
Change-Id: Ic27c2255bdc7affebeaad70170f005776aa304ef
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1811989
Cr-Commit-Position: refs/heads/main@{#201490}
1 file changed
tree: b4817863d9117a425920afcc211b6f7187e87b66
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.