| 269 | } |
| 270 | |
| 271 | U32 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 { |