summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-13 15:28:20 +0000
committerChristopher Faylor <me@cgf.cx>2001-04-13 15:28:20 +0000
commit39b6859a28b8b50d73fe6ae080ea42f4ef1bdea3 (patch)
tree6e6cc0afd7868c2a935f16c4e10a3d20ebf532b3 /winsup/cygwin/fhandler.cc
parente61cead397205b61dafed0d725cf9dcd89aead76 (diff)
downloadcygnal-39b6859a28b8b50d73fe6ae080ea42f4ef1bdea3.tar.gz
cygnal-39b6859a28b8b50d73fe6ae080ea42f4ef1bdea3.tar.bz2
cygnal-39b6859a28b8b50d73fe6ae080ea42f4ef1bdea3.zip
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index ff9a9dfb4..df2fd2217 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -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);