Kaynağa Gözat

It is *never* a good idea to throw away stderr :/.

Jay Freeman (saurik) 9 yıl önce
ebeveyn
işleme
5ac0f77c55
1 değiştirilmiş dosya ile 0 ekleme ve 6 silme
  1. 0 6
      apt-pkg/contrib/fileutl.cc

+ 0 - 6
apt-pkg/contrib/fileutl.cc

@@ -1956,12 +1956,6 @@ public:
 	       dup2(compressed_fd,STDIN_FILENO);
 	    dup2(Pipe[1],STDOUT_FILENO);
 	 }
-	 int const nullfd = open("/dev/null", O_WRONLY);
-	 if (nullfd != -1)
-	 {
-	    dup2(nullfd,STDERR_FILENO);
-	    close(nullfd);
-	 }
 
 	 SetCloseExec(STDOUT_FILENO,false);
 	 SetCloseExec(STDIN_FILENO,false);