Mercurial > hg-stable
view contrib/chg/procutil.h @ 31941:ac5527021097
chg: respect environment variables for pager
Previously chg runs the pager command without respecting its environment
variables being told to use. This patch makes it so.
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 12 Apr 2017 16:50:23 -0700 |
parents | baee0f47b533 |
children |
line wrap: on
line source
/* * Utilities about process handling - signal and subprocess (ex. pager) * * Copyright (c) 2011 Yuya Nishihara <yuya@tcha.org> * * This software may be used and distributed according to the terms of the * GNU General Public License version 2 or any later version. */ #ifndef PROCUTIL_H_ #define PROCUTIL_H_ #include <unistd.h> void restoresignalhandler(void); void setupsignalhandler(pid_t pid, pid_t pgid); pid_t setuppager(const char *pagercmd, const char *envp[]); void waitpager(void); #endif /* PROCUTIL_H_ */