Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
30689:9fa7255d4abd | 30690:e9ec42634ec8 |
---|---|
427 "before executing hg. If you have to use a " | 427 "before executing hg. If you have to use a " |
428 "wrapper, wrap chg instead of hg.", | 428 "wrapper, wrap chg instead of hg.", |
429 gethgcmd()); | 429 gethgcmd()); |
430 } | 430 } |
431 | 431 |
432 setupsignalhandler(hgc); | 432 setupsignalhandler(hgc_peerpid(hgc), hgc_peerpgid(hgc)); |
433 pagerpid = setuppager(hgc, argv + 1, argc - 1); | 433 pagerpid = setuppager(hgc, argv + 1, argc - 1); |
434 int exitcode = hgc_runcommand(hgc, argv + 1, argc - 1); | 434 int exitcode = hgc_runcommand(hgc, argv + 1, argc - 1); |
435 restoresignalhandler(); | 435 restoresignalhandler(); |
436 hgc_close(hgc); | 436 hgc_close(hgc); |
437 freecmdserveropts(&opts); | 437 freecmdserveropts(&opts); |