<span class="style3">Hi all..<br>
I am sorry for not having worked on this bug.I had my lab exams going on...
</span>
<p><span class="style3">I have done the final check on the files.<br>
  According to me, there are no more variables to be changed.<br>
  I am putting the difference below:</span><br>
</p>
<table width="492" border="1" cellpadding="10">
  <tr>
    <td><p><strong>bash-3.00# diff -u log.c.org log.c</strong><br>
        <em>--- log.c.org Tue Oct 2 19:45:58 2007<br>
  +++ log.c Wed Oct 31 15:49:54 2007<br>
  @@ -263,10 +263,10 @@<br>
  if (fd == -1)<br>
  return;<br>
  <br>
  - (void) dup2(fd, 1);<br>
  - (void) dup2(fd, 2);<br>
  + (void) dup2(fd, STDOUT_FILENO);<br>
  + (void) dup2(fd, STDERR_FILENO);<br>
  <br>
  - if (fd != 1 &amp;&amp; fd != 2)<br>
  + if (fd != STDOUT_FILENO &amp;&amp; fd != STDERR_FILENO)<br>
  startd_close(fd);<br>
  }</em></p>
      <p>&nbsp;</p>
      <p><strong>bash-3.00# diff -u fork.c.org fork.c</strong><br>
        <em>--- fork.c.org Tue Oct 2 19:45:58 2007<br>
  +++ fork.c Sun Oct 21 15:11:32 2007<br>
  @@ -265,7 +265,7 @@<br>
  while (dup2(fd_console, STDERR_FILENO) &lt; 0 &amp;&amp;<br>
  errno == EINTR)<br>
  ;<br>
  - if (fd_console &gt; 2)<br>
  + if (fd_console &gt; STDERR_FILENO)<br>
  (void) close(fd_console);<br>
  }</em></p>
      <p>&nbsp;</p>
      <p><strong>bash-3.00# diff -u startd.c.org startd.c</strong><br>
        <em>--- startd.c.org Tue Oct 2 19:45:58 2007<br>
  +++ startd.c Sat Oct 20 16:41:36 2007<br>
  @@ -807,12 +807,12 @@<br>
  if ((fd = open(&quot;/dev/null&quot;, O_RDONLY)) == -1) {<br>
  uu_warn(gettext(&quot;can't connect stdin to /dev/null&quot;));<br>
  } else if (fd != 0) {<br>
  - (void) dup2(fd, 0);<br>
  + (void) dup2(fd, STDIN_FILENO);<br>
  startd_close(fd);<br>
  }<br>
  <br>
  closefrom(3);<br>
  - (void) dup2(2, 1);<br>
  + (void) dup2(STDERR_FILENO, STDOUT_FILENO);<br>
  <br>
  (void) setsid();<br>
  (void) chdir(&quot;/&quot;);</em></p></td>
  </tr>
</table>
 
 
This message posted from opensolaris.org

Reply via email to