Fix popen_test in MODE=dbg

ASAN and vfork() don't appear to play well together. Maybe in later
versions of GCC it'll be better. But vfork() is flirting with danger
after all and that probably doesn't make sense in ASAN mode anyway.
This commit is contained in:
Justine Tunney 2021-05-01 17:13:48 -07:00
parent cef08d47b6
commit fabf7f9f02
5 changed files with 35 additions and 14 deletions

View file

@ -14,7 +14,7 @@ COSMOPOLITAN_C_START_
typedef struct FILE {
uint8_t bufmode; /* 0x00 _IOFBF, etc. (ignored if fd=-1) */
bool noclose; /* 0x01 for fake dup() */
bool noclose; /* 0x01 for fake dup() todo delete! */
uint32_t iomode; /* 0x04 O_RDONLY, etc. (ignored if fd=-1) */
int32_t state; /* 0x08 0=OK, -1=EOF, >0=errno */
int fd; /* 0x0c ≥0=fd, -1=closed|buffer */