aboutsummaryrefslogtreecommitdiff
path: root/core/os/os2/process_linux.odin
Commit message (Collapse)AuthorAgeFilesLines
* core:os -> core:os/old && core:os/os2 -> core:osJeroen van Rijn6 days1-868/+0
|
* In the middle of porting core:testingJeroen van Rijn7 days1-0/+18
|
* use `runtime.exit` for `os2.exit`gingerBill2025-10-311-5/+0
|
* Fix Linux executable pathKamron Bhavnagri2025-10-181-1/+2
| | | | | | | | Fixes a bug caused by an executable named identically to the directory it is in, where then the parent of that directory is both on the path and marked as executable Avoid this via stat, as we can check we are working with a file which is executable
* Fix linuxLucas Perlind2025-05-081-1/+1
|
* Remove TEMP_ALLOCATOR_GUARD wrapperLucas Perlind2025-05-081-4/+4
|
* os2: Resolve temp allocator collisionsLucas Perlind2025-05-081-23/+23
|
* Merge pull request #5127 from laytan/fix-process-windows-handles-handlingLaytan2025-05-061-3/+0
|\ | | | | Fix process windows handles handling
| * don't need to hang on to the null handlelaytan2025-05-061-3/+0
| |
| * close null_handleLaytan2025-05-061-3/+3
| |
* | Proper fix for executable name on Linux.Jeroen van Rijn2025-05-041-36/+27
| |
* | Fix `executable_path` info on LinuxJeroen van Rijn2025-05-041-3/+24
|/
* Decouple usage of `filepath` from `os2`Feoramund2025-03-211-3/+2
|
* Fix #4890Feoramund2025-02-271-8/+8
| | | | | | `strings.to_cstring` previously would not check if the buffer could handle the extra null byte and could lead to segmentation violations when using the resulting string in an API expecting the terminator.
* os/os2: Linux _process_start() write back error on fchdir failureRoland Kovacs2025-01-201-2/+3
|
* os/os2: Properly update CWD on Linux when using _process_start()Roland Kovacs2025-01-201-0/+4
| | | | | | The `dir_fd` argument to `execveat()` is not for setting the current working directory. It is used to resolve relative executable paths, hence explicit `chdir/fchdir` call is required to set CWD.
* Get arm64 up to speed in os2 linuxjason2024-12-191-36/+11
| | | | | | Readded open flags for arm64 to sys/linux/bits.odin. Make process_start name based instead of descriptor based to allow running of scripts. Fix bug in heap_linux. Fix and simplify os2.remove.
* fix deadlock when in write_errno_to_parent_and_abort stateLaytan2024-10-041-1/+1
|
* Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-141-2/+2
| | | | file tag syntax.
* os2: propogate errors from execv functions to parentLaytan Laats2024-08-251-11/+5
|
* os2: process API for Darwin and most of it for BSDsLaytan Laats2024-08-221-4/+7
|
* Minor clean upsgingerBill2024-08-161-16/+17
|
* update core:filepath's clean, join and split_list to return optional ↵jason2024-08-161-8/+8
| | | | Allocator_Errors
* os2/process_linux: improve error handling, use pidfd where possible, remove ↵jason2024-08-141-81/+202
| | | | usage of fmt
* stop trying to handle child pipe read errors in process_startjason2024-08-101-15/+10
|
* Ignore process_open errors in process_start. This enforces a contractjason2024-08-101-5/+1
| | | | | with the user that any process returned without error must eventually be waited on.
* fix error handling; close read end of the child pipe instead of the write ↵jason2024-08-101-3/+22
| | | | end twice
* fix child pipe in process_startjason2024-08-091-6/+6
|
* os2 linux process_wait rework; add Sig_Child_Code to sys/linux bitsjason2024-08-091-90/+153
|
* add child pipe for reporting post-fork errorsjason2024-08-081-16/+48
|
* point stdin, stdout, stderr to /dev/null if unused in os2.process_startjason2024-08-041-11/+37
|
* Remove returned bool from access and faccessat in sys/linux.jason2024-08-041-15/+37
| | | | Switch to using AT_EMPTY_PATH to execve with file descriptors.
* minor edits in process_linux.odinjason2024-08-031-3/+2
|
* change child error behavior to trap instead of exitjason2024-08-031-5/+6
|
* use sys/linux dirent instead of manual iterationjason2024-07-301-8/+3
|
* remove pidfd availability cachingjason2024-07-301-41/+9
|
* improve error handling; do not report errors from failed execvejason2024-07-301-17/+39
|
* remove ctprintf; use fmt.caprintf; fix pipe_linux that I broke.jason2024-07-241-2/+2
|
* typo - inverted logicjason2024-07-241-1/+1
|
* fix process_info assumptionsjason2024-07-241-38/+63
|
* use more iterators; global "has pidfd open" state is now thread-safejason2024-07-241-14/+27
|
* remove unused constants; fix commentjason2024-07-231-4/+1
|
* os2 linux: fix order of operations bug in _open; fix process_info routinejason2024-07-231-25/+24
|
* os2 process implementation for linuxjason2024-07-231-19/+499
|
* Begin mocking out the linux stuff on os2gingerBill2024-07-231-0/+95