summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygwin-console-helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/cygwin-console-helper.cc')
-rw-r--r--winsup/utils/cygwin-console-helper.cc13
1 files changed, 13 insertions, 0 deletions
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);
+}