Ignore:
Timestamp:
Sep 15, 2020, 11:28:37 PM (5 years ago)
Author:
bird
Message:

kash: Introduced asynchronous closing of files we're written to on windows because it may take a while on NTFS. We only need to make sure async CloseHandle are done when executing or forking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.h

    r3465 r3466  
    124124#define SHFILE_FLAGS_DIR                0x0020
    125125#define SHFILE_FLAGS_TTY                0x0030
     126#define SHFILE_FLAGS_DIRTY              0x0100  /**< The file has been written to. */
    126127/** @} */
    127128
     
    151152int shfile_exec_win(shfdtab *pfdtab, int prepare, shfdexecwin *info);
    152153int shfile_exec_unix(shfdtab *pfdtab);
     154#if K_OS == K_OS_WINDOWS && defined(KASH_ASYNC_CLOSE_HANDLE)
     155void shfile_async_close_sync(void);
     156#endif
    153157
    154158int shfile_open(shfdtab *, const char *, unsigned, mode_t);
Note: See TracChangeset for help on using the changeset viewer.