MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / tgkill

Method tgkill

source/kernel/ksystem.cpp:271–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271U32 KSystem::tgkill(U32 threadGroupId, U32 threadId, U32 signal) {
272 KThread* result = KSystem::getThreadById(threadId);
273
274 if (!result) {
275 return -K_ESRCH;;
276 }
277 // these signals should be asychronous, but either there is a bug in boxedwine in the kernel/syscall code or there is a race condition in wine,
278 // either way, blocking on SIGQUIT which is sent by wineserver seems to stop a server protocol error during shutdown. I saw this frequently
279 // starting in Wine 6.23 when closing notepad
280 return result->signal(signal, signal == 3);
281}
282
283/*
284 struct sysinfo {

Callers

nothing calls this directly

Calls 1

signalMethod · 0.45

Tested by

no test coverage detected