[gnome-builder] libide/threading: leave a reminder about read vs write side



commit 6b861badd74a8d5f9e6a3f08bbb5ee3582518206
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 27 16:55:26 2022 -0700

    libide/threading: leave a reminder about read vs write side
    
    I always have to look this up, so it would be nice to not have to.

 src/libide/threading/ide-unix-fd-map.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/threading/ide-unix-fd-map.c b/src/libide/threading/ide-unix-fd-map.c
index e721347e6..40291f0db 100644
--- a/src/libide/threading/ide-unix-fd-map.c
+++ b/src/libide/threading/ide-unix-fd-map.c
@@ -475,6 +475,7 @@ ide_unix_fd_map_create_stream (IdeUnixFDMap  *self,
   g_return_val_if_fail (dest_read_fd > -1, NULL);
   g_return_val_if_fail (dest_write_fd > -1, NULL);
 
+  /* pipe2(int[read,write]) */
   if (pipe2 (stdin_pair, O_CLOEXEC) != 0 ||
       pipe2 (stdout_pair, O_CLOEXEC) != 0)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]