X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=d9f9bd936590985bf32a8351738bbf875c4a5478;hp=cb13250e269874399eb6892eac73242d80adc0ac;hb=cbef31a5d0b06802f55f6de4867e27cc6f92fd79;hpb=c075e867311c77dfb7171241597e613290d1f62b diff --git a/stdin.c b/stdin.c index cb13250e..d9f9bd93 100644 --- a/stdin.c +++ b/stdin.c @@ -1,19 +1,7 @@ /* * Copyright (C) 2006 Andre Noll * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file stdin.c functions that deal with reading from stdin */ @@ -105,5 +93,6 @@ void stdin_set_defaults(struct stdin_task *sit) sit->task.post_select = stdin_post_select; sit->task.event_handler = stdin_default_event_handler; sit->task.private_data = sit; + mark_fd_nonblock(STDIN_FILENO); sprintf(sit->task.status, "stdin reader"); }