소스 검색

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

Jay Freeman (saurik) 9 년 전
부모
커밋
5ac0f77c55
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  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);