Commit Graph

2803 Commits

Author SHA1 Message Date
Josh Williams 70b997b249 switched to master makefile, run_tests and test_helpers 2025-04-20 21:17:39 +02:00
Josh Williams 2d3374f176 add tests to makefile and run_tests 2025-04-20 21:17:38 +02:00
Josh Williams 2bc44dba9d modify makefile and run_tests
fix compiler warnings
2025-04-20 21:17:38 +02:00
Josh Williams a2e19224a4 add signals-tests to makefile and run_tests 2025-04-20 21:17:38 +02:00
Josh Williams a7e9135bc9 clean up more tests 2025-04-20 21:17:38 +02:00
Josh Williams 6f787d20e5 clean up some tests 2025-04-20 21:17:38 +02:00
Josh Williams 9116eaa66d clean up a bunch of tests 2025-04-20 21:17:38 +02:00
Josh Williams 901b8099a2 add stdint.h to test_helpers
add tests for signals
2025-04-20 21:17:35 +02:00
4lDO2 696ae4eca1 Add DisableSetpgid call. 2025-04-20 16:24:46 +02:00
Jacob Lorentzon a9fd150c91 Merge branch 'redox_cur_procfd_v0' into 'master'
Add redox_cur_procfd_v0 method to get own proc_fd

See merge request redox-os/relibc!651
2025-04-20 14:22:13 +00:00
bjorn3 4755d1ae24 Add redox_cur_procfd_v0 method to get own proc_fd 2025-04-20 16:19:45 +02:00
4lDO2 a30f13ee9b Fix setuid. 2025-04-20 14:00:35 +02:00
Jeremy Soller 040009ab3d Merge branch 'userspace_proc' into 'master'
Use process manager

See merge request redox-os/relibc!649
2025-04-19 18:04:40 +00:00
4lDO2 9e73f93c5c Use redox-os/syscall git dep. 2025-04-19 19:27:23 +02:00
4lDO2 8f234edf69 Fix riscv64 fork asm. 2025-04-19 19:27:04 +02:00
4lDO2 2fe8dc8f6e Add (untested) riscv64 sighandler SYS_CALL asm. 2025-04-19 19:27:03 +02:00
4lDO2 0e0246bc69 Let procmgr handle process names. 2025-04-19 19:27:03 +02:00
4lDO2 8cfc7e8fac Do not treat ppid as constant. 2025-04-19 19:27:03 +02:00
4lDO2 aa034fccc8 Compile on riscv64gc. 2025-04-19 19:27:03 +02:00
4lDO2 e6c06a7cf7 Fix signals for spawned threads, and async signal waiting. 2025-04-19 19:27:03 +02:00
4lDO2 35357b2f14 Clear pending when act becomes Ign (no multi-thread). 2025-04-19 19:27:03 +02:00
4lDO2 a1937f438c Allow read-only sigaction for SIG{KILL,STOP}. 2025-04-19 19:27:03 +02:00
4lDO2 8f2d9ef1db Ensure allowset bits for SIGSTOP and SIGKILL are always set. 2025-04-19 19:27:03 +02:00
4lDO2 5dfc76dda8 Fix signal handlers after EINTR nanosleep. 2025-04-19 19:27:03 +02:00
4lDO2 c25b4c67e1 Add kill-waitpid test. 2025-04-19 19:27:02 +02:00
4lDO2 37b60b67e0 Add and fix test for kill&waitpid. 2025-04-19 19:27:02 +02:00
4lDO2 0083043736 Write and fix waitpid_multiple test. 2025-04-19 19:27:02 +02:00
4lDO2 a293b02992 Fix aarch64 signal test. 2025-04-19 19:27:02 +02:00
4lDO2 403beeb9f6 Fix sigqueue test for aarch64. 2025-04-19 19:27:02 +02:00
4lDO2 d559450d69 Use abort() rather than unreachable! when exit fails. 2025-04-19 19:27:02 +02:00
4lDO2 d0335b30de Use redox_rt::protocol for sig numbers. 2025-04-19 19:27:02 +02:00
4lDO2 e86dc155c6 Add reference to NLnet project. 2025-04-19 19:27:02 +02:00
4lDO2 1c6b3ad78b Fix aarch64 child_hook. 2025-04-19 19:27:01 +02:00
4lDO2 fb8e3cd751 Fix sigqueue on i686. 2025-04-19 19:27:01 +02:00
4lDO2 26c92af7ba Fix SigSet length. 2025-04-19 19:27:01 +02:00
4lDO2 05481b36a6 Fix IPC size on i686. 2025-04-19 19:27:01 +02:00
4lDO2 2fbbdcc1c9 Aarch64 fix, make i686 compile. 2025-04-19 19:27:01 +02:00
4lDO2 0213ac2d15 Probably fix aarch.
Bootloader is currently panicking so a bit hard to test.
2025-04-19 19:27:01 +02:00
4lDO2 c773544906 Fix sigentry for realtime sigs, fixing sigqueue test. 2025-04-19 19:27:01 +02:00
4lDO2 f813f5a222 Fix sigtimedwait realtime signals, almost handler too. 2025-04-19 19:27:01 +02:00
4lDO2 6d72048b13 Store proc_fd in MaybeUninit with external discriminant. 2025-04-19 19:27:01 +02:00
4lDO2 6e947a9b2f Simplify FdGuard. 2025-04-19 19:27:00 +02:00
4lDO2 3a8d63d2b8 Handle self-kill for posix_kill{,_thread}. 2025-04-19 19:27:00 +02:00
4lDO2 134914c580 Expand waitpid test. 2025-04-19 19:27:00 +02:00
4lDO2 c99e9c7db3 Add waitpid test back. 2025-04-19 19:27:00 +02:00
4lDO2 2fb247266b Fix typo in pthread_exit test. 2025-04-19 19:27:00 +02:00
4lDO2 a8ee9e72ee Fix possible TCB.thread_fd() use-after-free. 2025-04-19 19:27:00 +02:00
4lDO2 9e769fcb57 Add pthread_exit test.
This caught a bug in the kernel where it would return Ok(24) when
passing zero extra-munmap length.
2025-04-19 19:27:00 +02:00
4lDO2 cc6fadb8bb Only SyncSigTctl if there exists a proc fd. 2025-04-19 19:27:00 +02:00
4lDO2 dc2988968e Use SignalThread call and fix fork sighandler sync with procmgr. 2025-04-19 19:26:59 +02:00