mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
2a0b8f58fb
Summary: Update the chg code to correctly honor the `pager.stderr` setting, and avoid piping stderr to the pager when it is disabled. Since only the server-side code knows the hg config values, the server-side chgserver.py code passes this config setting back to the client when sending the pager request. Reviewed By: quark-zju Differential Revision: D17109106 fbshipit-source-id: 6b69b1a7de9f61db51af7b0ba00d65fa5053a795
22 lines
549 B
C
22 lines
549 B
C
/*
|
|
* 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[], int redirect_stderr);
|
|
void waitpager(void);
|
|
|
|
#endif /* PROCUTIL_H_ */
|