contrib/chg/procutil.h
author Pulkit Goyal <7895pulkit@gmail.com>
Mon, 31 Jul 2017 09:59:42 +0530
changeset 33693 db3dc11356ed
parent 31941 ac5527021097
permissions -rw-r--r--
pushvars: move fb extension pushvars to core pushvars extension in fbext adds a --pushvars flag to push command using which one send strings to server which becomes environment variables there prepended with HG_USERVAR_. These variables can then be used to run hooks on the server. The extension is moved directly to core and unbundling of the strings and converting them to environment variables at server is disabled by default for security reasons. One can turn that on by following config: [push] pushvars.server = true This patch also adds the test for the extension. Differential Revision: https://phab.mercurial-scm.org/D210

/*
 * 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_ */