server-JobObjects: Fix variable name (was renamed upstream).

This commit is contained in:
Sebastian Lackner 2015-04-03 18:53:28 +02:00
parent da14f3201a
commit 174fd8ca69

View File

@ -53,7 +53,7 @@ index 10193ef..89c029e 100644
+ /* If this is the last handle and JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE is set,
+ * then terminate all associcated processes. We can't use the refcount because
+ * processes have a reference to the job object. */
+ if (obj->handlecount == 1 && (job->limit_flags & JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE))
+ if (obj->handle_count == 1 && (job->limit_flags & JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE))
+ terminate_job( job, 0 );
+
+ return 1;