Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-07-05 04:01:26 +0400
committerChristopher Faylor <me@cgf.cx>2009-07-05 04:01:26 +0400
commitcea37699d1d7f46396323a1997ccd54148517a62 (patch)
treef9b3dc23504a68b4cbcb4c8a0716ec0928971a4e /winsup/utils
parent01d8a2dfd6390a6cd7eabb8077e360e74136f59f (diff)
* cygwin-console-helper.cc: New file.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/Makefile.in2
-rw-r--r--winsup/utils/cygwin-console-helper.cc13
3 files changed, 18 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 0ba577093..52ae14199 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-04 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * cygwin-console-helper.cc: New file.
+
2009-06-10 Corinna Vinschen <corinna@vinschen.de>
* path.cc (oopts): Sort alphabetically, add missing "auto" and
diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in
index f80bcca33..48555e676 100644
--- a/winsup/utils/Makefile.in
+++ b/winsup/utils/Makefile.in
@@ -57,7 +57,7 @@ CYGWIN_BINS := ${addsuffix .exe,cygpath getfacl ldd kill mkgroup \
# List all binaries to be linked in MinGW mode. Each binary on this list
# must have a corresponding .o of the same name.
-MINGW_BINS := ${addsuffix .exe,cygcheck ldh strace}
+MINGW_BINS := ${addsuffix .exe,cygcheck cygwin-console-helper ldh strace}
# List all objects to be compiled in MinGW mode. Any object not on this
# list will will be compiled in Cygwin mode implicitly, so there is no
diff --git a/winsup/utils/cygwin-console-helper.cc b/winsup/utils/cygwin-console-helper.cc
new file mode 100644
index 000000000..8f62ed7e6
--- /dev/null
+++ b/winsup/utils/cygwin-console-helper.cc
@@ -0,0 +1,13 @@
+#include <windows.h>
+int
+main (int argc, char **argv)
+{
+ char *end;
+ if (argc != 3)
+ exit (1);
+ HANDLE h = (HANDLE) strtoul (argv[1], &end, 0);
+ SetEvent (h);
+ h = (HANDLE) strtoul (argv[2], &end, 0);
+ WaitForSingleObject (h, INFINITE);
+ exit (0);
+}