diff contrib/chg/chg.c @ 30690:e9ec42634ec8

chg: decouple hgclient from setupsignalhandler procutil should not depend on hgclient. This patch makes the signal handling part independent from hgclient.
author Jun Wu <quark@fb.com>
date Mon, 02 Jan 2017 14:04:35 +0000
parents 9fa7255d4abd
children 7adb60660496
line wrap: on
line diff
--- a/contrib/chg/chg.c	Mon Jan 02 14:02:47 2017 +0000
+++ b/contrib/chg/chg.c	Mon Jan 02 14:04:35 2017 +0000
@@ -429,7 +429,7 @@
 				 gethgcmd());
 	}
 
-	setupsignalhandler(hgc);
+	setupsignalhandler(hgc_peerpid(hgc), hgc_peerpgid(hgc));
 	pagerpid = setuppager(hgc, argv + 1, argc - 1);
 	int exitcode = hgc_runcommand(hgc, argv + 1, argc - 1);
 	restoresignalhandler();