summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2025-09-21 01:36:23 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-09-21 01:36:59 +0200
commitd6b6fe73c2c3172abc95843665a668a6bd18a6be (patch)
tree460e1485a8d65f64ecb73ed1f5e8227519666dce /trans
parent5eda2dbdb1a3eaae70178df55b7e3d7508b15c9b (diff)
streamio (io_select_common): Fix locking global_lockHEADmaster
global_lock is not unlocked at the end of the while loop.
Diffstat (limited to 'trans')
-rw-r--r--trans/streamio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/streamio.c b/trans/streamio.c
index c6e7229e..d21dc937 100644
--- a/trans/streamio.c
+++ b/trans/streamio.c
@@ -572,9 +572,9 @@ io_select_common (struct trivfs_protid *cred,
available = 0;
+ pthread_mutex_lock (&global_lock);
while (1)
{
- pthread_mutex_lock (&global_lock);
if ((*type & SELECT_READ) && buffer_readable (input_buffer))
available |= SELECT_READ;
if ((*type & SELECT_WRITE) &&