Changeset 4580 for trunk/src


Ignore:
Timestamp:
Nov 9, 2000, 9:42:43 PM (25 years ago)
Author:
bird
Message:

New attempt to fix cl. Ensure that there are lot's of free handles by
allocating a high handle. It don't seems like this helps. :-(

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:09 bird Exp $
     1/* $Id: clfix.c,v 1.2 2000-11-09 20:42:43 bird Exp $
    22 *
    33 * A wrapper program for cl.exe fix will try fix some of the problems
     
    2222#include <os2.h>
    2323#include <string.h>
    24 
     24#include <stdio.h>
    2525
    2626
     
    3131    int             argi;
    3232    char *          psz;
     33    HFILE           hFile;
     34    APIRET          rc;
     35
    3336
    3437    /*
     
    7376
    7477    /*
    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.
    7682     */
    7783    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);
    7893
    7994
Note: See TracChangeset for help on using the changeset viewer.