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

cygwin-console-helper.cc « utils « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f62ed7e6cdb4f0f3c9d5d3fbf437fb07c498d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}