[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit redirection of background within pipeline
From: |
Chet Ramey |
Subject: |
Re: implicit redirection of background within pipeline |
Date: |
Mon, 11 Jan 2016 10:40:18 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 1/10/16 12:54 PM, Piotr Grzybowski wrote:
> hey,
>
> I am quite sure it happens here (devel branch, at
> 6f82653c5ef09aeeeba4376a1c65ce86c3605c00):
>
> execute_cmd.c +5115:
> if ((cmdflags & CMD_STDIN_REDIR) &&
> pipe_in == NO_PIPE &&
> (stdin_redirects (redirects) == 0))
> async_redirect_stdin ();
>
> but after reading the comments some 3.5k lines earlier I am not sure
> how to fix it; of course commenting out the if in
> execute_cmd.c:5112-5115 solves it, but who can tell what it breaks?
Posix requires this behavior:
"The standard input for an asynchronous list, before any explicit
redirections are performed, shall be considered to be assigned to a file
that has the same properties as /dev/null."
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- implicit redirection of background within pipeline, Martin D Kealey, 2016/01/10
- Re: implicit redirection of background within pipeline, Martin Kealey, 2016/01/12
- Re: implicit redirection of background within pipeline, Andreas Schwab, 2016/01/13
- Re: implicit redirection of background within pipeline, Chet Ramey, 2016/01/13
- Re: implicit redirection of background within pipeline, Martin Kealey, 2016/01/13
- Re: implicit redirection of background within pipeline, Andreas Schwab, 2016/01/13