]> 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)
commit510de9ec13ee4663f6584d47dfc218481e5eb3a0
tree89ab7d51c347a78296a36a17643bfe4ea12f1909
parent4835b563f8c601c84264fb6b431324e41126b834
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