From b0798df545a3b6411558eb4798798db187b49430 Mon Sep 17 00:00:00 2001 From: Alexander Krisak Date: Tue, 14 Feb 2017 14:18:34 +0000 Subject: [PATCH] Add missing constant definition, per issue [#2249]. --- w32api/ChangeLog | 6 ++++++ w32api/include/winnt.h | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/w32api/ChangeLog b/w32api/ChangeLog index 2d72906..6540dfe 100644 --- a/w32api/ChangeLog +++ b/w32api/ChangeLog @@ -1,3 +1,9 @@ +2017-02-14 Alexander Krisak + + Add missing constant definition, per issue [#2249]. + + * include/winnt.h (JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE): Define it. + 2017-02-10 Keith Marshall Avoid unnecessary duplication of configuration files. diff --git a/w32api/include/winnt.h b/w32api/include/winnt.h index 809933b..4dc1101 100644 --- a/w32api/include/winnt.h +++ b/w32api/include/winnt.h @@ -6,7 +6,7 @@ * $Id$ * * Written by Anders Norlander - * Copyright (C) 1998-2011, 2016, MinGW.org Project + * Copyright (C) 1998-2011, 2016, 2017, MinGW.org Project * * * Permission is hereby granted, free of charge, to any person obtaining a @@ -3620,7 +3620,9 @@ typedef union _FILE_SEGMENT_ELEMENT ULONGLONG Alignment; } FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; -/* JOBOBJECT_BASIC_LIMIT_INFORMATION.LimitFlags constants */ +/* JOBOBJECT_BASIC_LIMIT_INFORMATION.LimitFlags constants: + * https://msdn.microsoft.com/en-us/library/windows/desktop/ms684147(v=vs.85).aspx + */ #define JOB_OBJECT_LIMIT_WORKINGSET 0x0001 #define JOB_OBJECT_LIMIT_PROCESS_TIME 0x0002 #define JOB_OBJECT_LIMIT_JOB_TIME 0x0004 @@ -3634,6 +3636,7 @@ typedef union _FILE_SEGMENT_ELEMENT #define JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION 0x0400 #define JOB_OBJECT_LIMIT_BREAKAWAY_OK 0x0800 #define JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK 0x1000 +#define JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE 0x2000 /* Wrong definitions, but keep for backward compatibility. */ #define JOB_OBJECT_BREAKAWAY_OK JOB_OBJECT_LIMIT_BREAKAWAY_OK -- 2.11.0