tFix FIFO craziness - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 95f1ad5ed6c32cf5584900af84adc90c4b009b44
 (DIR) parent 6692dbe514e613ed999e219a392d009ddce1e048
 (HTM) Author: sin <sin@2f30.org>
       Date:   Wed, 17 Sep 2014 18:37:26 +0100
       
       Fix FIFO craziness
       
       Diffstat:
         M ratatox.c                           |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ratatox.c b/ratatox.c
       t@@ -77,7 +77,7 @@ static struct slot gslots[] = {
        };
        
        static struct file gfiles[] = {
       -        { .type = FIFO,  .name = "in",  .flags = O_RDONLY | O_NONBLOCK,        .mode = 0644},
       +        { .type = FIFO,  .name = "in",  .flags = O_RDWR | O_NONBLOCK,          .mode = 0644},
                { .type = OUT_F, .name = "out", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644},
                { .type = OUT_F, .name = "err", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644},
        };
       t@@ -90,8 +90,8 @@ enum {
        
        /* Friend related FIFOs, they go in <friend-id/{text,file}_in */
        static struct file ffifos[] = {
       -        { .type = FIFO, .name = "text_in", .flags = O_RDONLY | O_NONBLOCK, .mode = 0644 },
       -        { .type = FIFO, .name = "file_in", .flags = O_RDONLY | O_NONBLOCK, .mode = 0644 },
       +        { .type = FIFO, .name = "text_in", .flags = O_RDWR | O_NONBLOCK, .mode = 0644 },
       +        { .type = FIFO, .name = "file_in", .flags = O_RDWR | O_NONBLOCK, .mode = 0644 },
        };
        
        enum {