diff options
author | Christopher Faylor <me@cgf.cx> | 2009-07-05 04:01:26 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-07-05 04:01:26 +0400 |
commit | cea37699d1d7f46396323a1997ccd54148517a62 (patch) | |
tree | f9b3dc23504a68b4cbcb4c8a0716ec0928971a4e /winsup/utils/cygwin-console-helper.cc | |
parent | 01d8a2dfd6390a6cd7eabb8077e360e74136f59f (diff) |
* cygwin-console-helper.cc: New file.
Diffstat (limited to 'winsup/utils/cygwin-console-helper.cc')
-rw-r--r-- | winsup/utils/cygwin-console-helper.cc | 13 |
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); +} |