contrib/chg/chg.c
changeset 28555 1435a8e9b5fe
parent 28535 aa082a8125da
child 28605 baa073200ba2
--- a/contrib/chg/chg.c	Mon Mar 14 15:03:19 2016 +0000
+++ b/contrib/chg/chg.c	Mon Mar 14 15:05:25 2016 +0000
@@ -294,12 +294,6 @@
 	if (pid == 0) {
 		/* do not leak lockfd to hg */
 		close(opts->lockfd);
-		/* bypass uisetup() of pager extension */
-		int nullfd = open("/dev/null", O_WRONLY);
-		if (nullfd >= 0) {
-			dup2(nullfd, fileno(stdout));
-			close(nullfd);
-		}
 		execcmdserver(opts);
 	} else {
 		hgc = retryconnectcmdserver(opts, pid);