* fork.cc (fork_child): Call the __pthread_atforkchild function.
(fork_parent): Call the __pthread_atforkparent function. * cygwin.din: Export pthread_atfork. * thread.h (callback): New class. (MTinterface): Use it. * thread.cc (__pthread_atforkprepare): New function. (__pthread_atforkparent): New function. (__pthread_atforkchild): New function. (__pthread_atfork): New function. * pthread.cc (pthread_atfork): New function.
This commit is contained in:
@ -370,9 +370,8 @@ fhandler_base::open (int flags, mode_t mode)
|
||||
file_attributes,
|
||||
0);
|
||||
|
||||
syscall_printf ("%d = CreateFileA (%s, %p, %p, %p, %p, %p, 0)",
|
||||
x,
|
||||
get_win32_name (), access_, shared,
|
||||
syscall_printf ("%p = CreateFileA (%s, %p, %p, %p, %p, %p, 0)",
|
||||
x, get_win32_name (), access_, shared,
|
||||
&sec_none, creation_distribution,
|
||||
file_attributes);
|
||||
|
||||
|
Reference in New Issue
Block a user