mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
restoreSignals() + restoreAffinity() -> restoreProcessContext()
This commit is contained in:
parent
8a29052cb2
commit
9b9e703df4
9 changed files with 32 additions and 42 deletions
|
@ -310,7 +310,7 @@ void printVersion(const string & programName)
|
|||
|
||||
void showManPage(const string & name)
|
||||
{
|
||||
restoreSignals();
|
||||
restoreProcessContext();
|
||||
setenv("MANPATH", settings.nixManDir.c_str(), 1);
|
||||
execlp("man", "man", name.c_str(), nullptr);
|
||||
throw SysError("command 'man %1%' failed", name.c_str());
|
||||
|
@ -373,7 +373,7 @@ RunPager::RunPager()
|
|||
throw SysError("dupping stdin");
|
||||
if (!getenv("LESS"))
|
||||
setenv("LESS", "FRSXMK", 1);
|
||||
restoreSignals();
|
||||
restoreProcessContext();
|
||||
if (pager)
|
||||
execl("/bin/sh", "sh", "-c", pager, nullptr);
|
||||
execlp("pager", "pager", nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue