newlib-cygwin/winsup/utils/cygwin-console-helper.cc

14 lines
262 B
C++
Raw Normal View History

2009-07-05 08:01:26 +08:00
#include <windows.h>
int
main (int argc, char **argv)
{
char *end;
if (argc != 3)
exit (1);
HANDLE h = (HANDLE) strtoull (argv[1], &end, 0);
2009-07-05 08:01:26 +08:00
SetEvent (h);
h = (HANDLE) strtoull (argv[2], &end, 0);
2009-07-05 08:01:26 +08:00
WaitForSingleObject (h, INFINITE);
exit (0);
}