/*
- * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
t->error = 0;
if (!sot->check_fd) {
- if (*sot->input_error)
+ if (!*sot->loaded && *sot->input_error < 0)
t->error = *sot->input_error;
return;
}
* \param sot The stdout task structure.
*
* This fills in the pre/post select function poinzters of the task structure
- * given by \a sot. It also sets up a default error handler which unregisters
- * the task on errors and clears the eof flag of \a sot.
+ * given by \a sot.
*/
void stdout_set_defaults(struct stdout_task *sot)
{