aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/src/__support/RPC/rpc_server.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/src/__support/RPC/rpc_server.h b/libc/src/__support/RPC/rpc_server.h
index 4bd8a93..4c8242a 100644
--- a/libc/src/__support/RPC/rpc_server.h
+++ b/libc/src/__support/RPC/rpc_server.h
@@ -395,7 +395,9 @@ LIBC_INLINE static rpc::Status handle_port_impl(rpc::Server::Port &port) {
port.recv([](rpc::Buffer *buffer, uint32_t) {
int status = 0;
__builtin_memcpy(&status, buffer->data, sizeof(int));
- exit(status);
+ // We want a quick exit to avoid conflicts with offloading library
+ // teardowns when called from the GPU.
+ quick_exit(status);
});
break;
}