This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/2865: fixincl broken when STDIN is closed



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]