* \param t the task structure of the stdin task
*
* This function is always successful. If there is space left in the
- * buffer of the stdin task, it adds \a STDIN_FILENO to the read fd set
+ * buffer of the stdin task, it adds \p STDIN_FILENO to the read fd set
* of \a s.
*/
void stdin_pre_select(struct sched *s, struct task *t)
* \param s the scheduler this task was registered to
* \param t the task structure of the stdin task
*
- * This function checks if \a STDIN_FILENO was included by in the read fd set
- * of \a s during the previous pre_select call. If yes, and STDIN_FILENO
+ * This function checks if \p STDIN_FILENO was included by in the read fd set
+ * of \a s during the previous pre_select call. If yes, and \p STDIN_FILENO
* appeears to be readable, data is read from stdin into the buffer of the
* stdin task.
*/
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");
}