* flock.cc (create_lock_in_parent): Make lf_obj handle inheritable.

Explain why.
	(lockf_t::create_lock_obj): Use FALSE, rather than 0 for BOOL argument.
	(lockf_t::del_lock_obj): Check if NtSetEvent succeeded and print system
	message if not.
This commit is contained in:
Corinna Vinschen
2014-12-02 15:39:57 +00:00
parent 44cacc7f44
commit df386ddac8
3 changed files with 19 additions and 2 deletions

View File

@ -467,6 +467,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
}
}
debug_printf ("ping 1");
if (mode == _P_DETACH)
c_flags |= DETACHED_PROCESS;
else