author | Rich Felker <dalias@aerifal.cx> | 2021年04月20日 14:52:08 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2021年04月20日 14:52:08 -0400 |
commit | e74acd59a5c7d56ae0e64c4ffa5043da13ee896e (patch) | |
tree | 55fa1f9bc74ca530279c202998c8d1bc95063c31 /src/stdio/popen.c | |
parent | 9a40e842dfa5659c149778c5870435eb14439ed6 (diff) | |
download | musl-e74acd59a5c7d56ae0e64c4ffa5043da13ee896e.tar.gz |
-rw-r--r-- | src/stdio/popen.c | 2 |
diff --git a/src/stdio/popen.c b/src/stdio/popen.c index b53a5572..19bbe7cf 100644 --- a/src/stdio/popen.c +++ b/src/stdio/popen.c @@ -31,7 +31,6 @@ FILE *popen(const char *cmd, const char *mode) __syscall(SYS_close, p[1]); return NULL; } - FLOCK(f); e = ENOMEM; if (!posix_spawn_file_actions_init(&fa)) { @@ -43,7 +42,6 @@ FILE *popen(const char *cmd, const char *mode) if (!strchr(mode, 'e')) fcntl(p[op], F_SETFD, 0); __syscall(SYS_close, p[1-op]); - FUNLOCK(f); return f; } } |