]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: CTRL+C/CTRL+Z job control and doom build errors
authorTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:30:53 +0000 (04:30 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:30:53 +0000 (04:30 -0300)
commitbd9a1b3bf2ddb06c00bc4362191cfe333f096166
tree12b3630e307d27f472999238b168742d1c66375e
parent684d84b0ed8ca035597be1807b6659268fad8035
fix: CTRL+C/CTRL+Z job control and doom build errors

1. CTRL+C/CTRL+Z: Shell now calls setsid() instead of setpgid(0,0)
   to create a proper session. This initializes tty_session_id so
   TIOCSPGRP can actually set child processes as the foreground
   group. Previously, TIOCSPGRP silently returned -EPERM because
   tty_session_id was 0.

2. Doom mkdir: Added mkdir/stat/fstat/chmod declarations to
   user/ulibc/include/sys/stat.h where POSIX expects them.
   Doom's m_misc.c includes sys/stat.h for mkdir().

3. Doom __divdi3: Added libgcc.a to doom link step to provide
   compiler runtime helpers for 64-bit arithmetic on i386.
user/doom/Makefile
user/sh.c
user/ulibc/include/sys/stat.h