| 111 | } |
| 112 | |
| 113 | bool SendMessageToClient( |
| 114 | int client_sock, |
| 115 | ExceptionHandlerProtocol::ServerToClientMessage::Type type) { |
| 116 | ExceptionHandlerProtocol::ServerToClientMessage message = {}; |
| 117 | message.type = type; |
| 118 | if (type == |
| 119 | ExceptionHandlerProtocol::ServerToClientMessage::kTypeSetPtracer) { |
| 120 | message.pid = getpid(); |
| 121 | } |
| 122 | return LoggingWriteFile(client_sock, &message, sizeof(message)); |
| 123 | } |
| 124 | |
| 125 | int tgkill(pid_t pid, pid_t tid, int signo) { |
| 126 | return syscall(SYS_tgkill, pid, tid, signo); |
no test coverage detected