]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
bsdsocket: preserve Unix trap context for host calls
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 5 Jun 2026 04:41:33 +0000 (21:41 -0700)
committerStefan <stefan.reinauer@coreboot.org>
Sun, 14 Jun 2026 04:50:59 +0000 (21:50 -0700)
commitd2482174dd91d2243a1a38781c11c4ceeb441bbb
tree9741415cf006bfe20b5904dbbf7729fee5128898
parent5b9383b7d7d596bf2948c2371e92400a7a6cd277
bsdsocket: preserve Unix trap context for host calls

The Unix shutdown and setsockopt paths need the active TrapContext when
they resolve guest socket descriptors and copy guest option data. Store
the current context in the socket base before dispatching those host
calls and when the deferred WaitSelect worker is armed.
bsdsocket.cpp
od-unix/bsdsock_unix.cpp