4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 02:09:19 +08:00
newlib-cygwin/winsup/utils/cygwin-console-helper.cc
2009-07-05 00:01:26 +00:00

14 lines
260 B
C++

#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);
}