about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/stdio/popen.c2
1 files changed, 0 insertions, 2 deletions
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;
 			}
 		}