| 137 | } |
| 138 | |
| 139 | static void MakeEvents(ThreadInfo* ti) |
| 140 | { |
| 141 | SECURITY_ATTRIBUTES saAttr; |
| 142 | |
| 143 | saAttr.nLength = sizeof(SECURITY_ATTRIBUTES); |
| 144 | saAttr.bInheritHandle = TRUE; |
| 145 | saAttr.lpSecurityDescriptor = NULL; |
| 146 | |
| 147 | sprintf(ti->szBreak, "PURE_SIGINT-%u", ti->pi.dwProcessId); |
| 148 | sprintf(ti->szKill, "PURE_SIGTERM-%u", ti->pi.dwProcessId); |
| 149 | ti->hBreak = CreateEvent(&saAttr, TRUE, FALSE, ti->szBreak); |
| 150 | ti->hKill = CreateEvent(&saAttr, TRUE, FALSE, ti->szKill); |
| 151 | } |
| 152 | |
| 153 | static BOOL MakeTempName(CString& name) |
| 154 | { |