- Timestamp:
- Nov 9, 2000, 9:42:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/clfix.c
r4292 r4580 1 /* $Id: clfix.c,v 1. 1 2000-09-21 15:37:09bird Exp $1 /* $Id: clfix.c,v 1.2 2000-11-09 20:42:43 bird Exp $ 2 2 * 3 3 * A wrapper program for cl.exe fix will try fix some of the problems … … 22 22 #include <os2.h> 23 23 #include <string.h> 24 24 #include <stdio.h> 25 25 26 26 … … 31 31 int argi; 32 32 char * psz; 33 HFILE hFile; 34 APIRET rc; 35 33 36 34 37 /* … … 73 76 74 77 /* 75 * Set max filehandles (is this inherited?) 78 * Set max filehandles 79 * ú Is this inherited? 80 * - Probably not. So we'll have exploit handle inheritance 81 * to fix this. 76 82 */ 77 83 DosSetMaxFH(100); 84 85 /* 86 * Let us open a high handle number which makes the 87 * child process to inherit the maximum number of open files. 88 */ 89 hFile = 99; /* suggest handle number. */ 90 rc = DosDupHandle(1, &hFile); 91 if (rc) 92 printf("clfix: DosDupHandle failed with rc=%d\n\n", rc); 78 93 79 94
Note:
See TracChangeset
for help on using the changeset viewer.