Show More
@@ -294,12 +294,6 b' static hgclient_t *connectcmdserver(stru' | |||||
294 | if (pid == 0) { |
|
294 | if (pid == 0) { | |
295 | /* do not leak lockfd to hg */ |
|
295 | /* do not leak lockfd to hg */ | |
296 | close(opts->lockfd); |
|
296 | close(opts->lockfd); | |
297 | /* bypass uisetup() of pager extension */ |
|
|||
298 | int nullfd = open("/dev/null", O_WRONLY); |
|
|||
299 | if (nullfd >= 0) { |
|
|||
300 | dup2(nullfd, fileno(stdout)); |
|
|||
301 | close(nullfd); |
|
|||
302 | } |
|
|||
303 | execcmdserver(opts); |
|
297 | execcmdserver(opts); | |
304 | } else { |
|
298 | } else { | |
305 | hgc = retryconnectcmdserver(opts, pid); |
|
299 | hgc = retryconnectcmdserver(opts, pid); |
General Comments 0
You need to be logged in to leave comments.
Login now