Cyrus Harmon writes:
> Hrm... building with sb-after-xc-core gets most of the way there, but fails in sb-posix:
>
> SB-POSIX-TESTS::FILENAME-DESIGNATOR.1 SB-POSIX-TESTS::OPEN.1
> fatal error encounteredfatal error encountered in SBCL pid 35147 in SBCL pid 35147(tid 140735080524960)(tid 2953854976):
> :
> mach_port_allocate_name failed with return_code 268435459
> mach_msg_server returned
This issue is fixed by merging your patch with mine.
The reason it failed in my patch is:
- the mach_task_self is cached
- sb-posix:fork code forks and inherits the cached value.
Your fix did not have this issue because sb-posix:fork calls
(setup-mach-exceptions)
which takes care of setting the right task port in the child process.
I have attached an updated patch.