Commit 43b594b4 by Tobias Burnus Committed by Tobias Burnus

transfer.c (read_block_direct): Correct condition.

2013-03-11  Tobias Burnus  <burnus@net-b.de>

        * io/transfer.c (read_block_direct): Correct condition.
        * intrinsics/execute_command_line.c (execute_command_line):
        Remove dead code for the HAVE_FORK case.

From-SVN: r196603
parent 87f56a65
2013-03-11 Tobias Burnus <burnus@net-b.de>
* io/transfer.c (read_block_direct): Correct condition.
* intrinsics/execute_command_line.c (execute_command_line):
Remove dead code for the HAVE_FORK case.
2013-02-21 Janne Blomqvist <jb@gcc.gnu.org> 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/30162 PR libfortran/30162
......
...@@ -94,8 +94,10 @@ execute_command_line (const char *command, bool wait, int *exitstat, ...@@ -94,8 +94,10 @@ execute_command_line (const char *command, bool wait, int *exitstat,
if (res == -1) if (res == -1)
set_cmdstat (cmdstat, EXEC_SYSTEMFAILED); set_cmdstat (cmdstat, EXEC_SYSTEMFAILED);
#ifndef HAVE_FORK
else if (!wait) else if (!wait)
set_cmdstat (cmdstat, EXEC_SYNCHRONOUS); set_cmdstat (cmdstat, EXEC_SYNCHRONOUS);
#endif
else else
set_cmdstat (cmdstat, EXEC_NOERROR); set_cmdstat (cmdstat, EXEC_NOERROR);
......
...@@ -641,7 +641,7 @@ read_block_direct (st_parameter_dt *dtp, void *buf, size_t nbytes) ...@@ -641,7 +641,7 @@ read_block_direct (st_parameter_dt *dtp, void *buf, size_t nbytes)
have_read_subrecord = sread (dtp->u.p.current_unit->s, have_read_subrecord = sread (dtp->u.p.current_unit->s,
buf + have_read_record, to_read_subrecord); buf + have_read_record, to_read_subrecord);
if (unlikely (have_read_subrecord) < 0) if (unlikely (have_read_subrecord < 0))
{ {
generate_error (&dtp->common, LIBERROR_OS, NULL); generate_error (&dtp->common, LIBERROR_OS, NULL);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment