flow.c
author viric@mandarina
Mon, 28 Apr 2008 21:37:25 +0200
changeset 90 f172b95795d8
parent 66 b2469563a1dc
permissions -rw-r--r--
Moving to version 0.4.1

/*
    Terminal Mixer - multi-point multi-user access to terminal applications
    Copyright (C) 2007  LluĂ­s Batlle i Rossell

    Please find the license in the provided COPYING file.
*/
#include <stdlib.h>
#include <unistd.h>
#include <sys/select.h>

#include "main.h"
#include "handlers.h"

void avoid_sending(fd_set *read_set)
{
    dump_line("Avoid sending\n");
    if (command_line.is_server)
    {
        if (app_stdout >= 0)
            FD_CLR(app_stdout, read_set);
        if (app_stderr >= 0)
            FD_CLR(app_stderr, read_set);
    }
    else
    {
            FD_CLR(0, read_set); /* client terminal stdin */
    }
}