This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/2865: fixincl broken when STDIN is closed
- To: gcc-gnats at gcc dot gnu dot org
- Subject: optimization/2865: fixincl broken when STDIN is closed
- From: aj at suse dot de
- Date: 18 May 2001 11:58:37 -0000
- Reply-To: aj at suse dot de
>Number: 2865
>Category: optimization
>Synopsis: fixincl broken when STDIN is closed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 18 05:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Andreas Jaeger
>Release: unknown-1.0
>Organization:
>Environment:
i686-linux
>Description:
I tried building GCC from cron but this failed in fixincl. cron
closes stdin and fixincl cannot cope this.
To reproduce (under bash) just check the following:
$ ./fixincl -v
'fixincl version 1.1'
$ ./fixincl -v <&-
'fixincl version 1.1'
NOTE: server restarted
Server not running, cannot run:
echo 'fixincl version 1.1'
>How-To-Repeat:
Just build fixincl and run it with closed stdin.
>Fix:
A workaround for my cron job is to use /dev/null as
stdin - but this is just a hack IMO.
>Release-Note:
>Audit-Trail:
>Unformatted: