Fixed various compile errors with the compatibility kill code
This commit is contained in:
parent
2b963e8eff
commit
05bf62890f
1 changed files with 3 additions and 3 deletions
|
@ -30,13 +30,14 @@
|
|||
#include "io/output.h"
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <signal.h>
|
||||
|
||||
static INLINE void nothing(void) {}
|
||||
|
||||
#ifdef VANILLA_WIN32
|
||||
static HANDLE cr_job;
|
||||
#else
|
||||
static void handle_sigterm(int signum) {
|
||||
static void handle_sigterm(CR_UNUSED int signum) {
|
||||
assert(signum == SIGTERM);
|
||||
|
||||
kill(-getpid(), SIGTERM);
|
||||
|
@ -47,8 +48,7 @@ static void handle_sigterm(int signum) {
|
|||
void setup_parent_job(void) {
|
||||
#ifdef VANILLA_WIN32
|
||||
// Put runner in its own job
|
||||
SECURITY_ATTRIBUTES attr = {};
|
||||
cr_job = CreateJobObject(&attr, NULL);
|
||||
cr_job = CreateJobObject(NULL, NULL);
|
||||
if (!AssignProcessToJobObject(cr_job, GetCurrentProcess()))
|
||||
abort();
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue