+2011-12-18 Hui Zhu <teawater@gmail.com>
+
+ * linux-low.c (linux_create_inferior): Save return value to ret.
+
2011-12-16 Doug Evans <dje@google.com>
* linux-low.c (linux_create_inferior): If stdio connection,
Also, redirect stdin to /dev/null. */
if (remote_connection_is_stdio ())
{
+ int ret;
close (0);
open ("/dev/null", O_RDONLY);
dup2 (2, 1);
- write (2, "stdin/stdout redirected\n",
- sizeof ("stdin/stdout redirected\n") - 1);
+ ret = write (2, "stdin/stdout redirected\n",
+ sizeof ("stdin/stdout redirected\n") - 1);
}
execv (program, allargs);