1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Revert "Use posix_spawn to run the pager"

This reverts commit d34d2b2bbf.
This commit is contained in:
Eelco Dolstra 2014-12-10 13:48:50 +01:00
parent 2e98703c0c
commit ad332e1718
3 changed files with 10 additions and 39 deletions

View file

@ -73,7 +73,6 @@ class SysError : public Error
public:
int errNo;
SysError(const FormatOrString & fs);
SysError(int errNo, const FormatOrString & fs);
};

View file

@ -45,14 +45,8 @@ BaseError & BaseError::addPrefix(const FormatOrString & fs)
SysError::SysError(const FormatOrString & fs)
: SysError(errno, fs)
{
}
SysError::SysError(int errNo, const FormatOrString & fs)
: Error(format("%1%: %2%") % fs.s % strerror(errNo))
, errNo(errNo)
: Error(format("%1%: %2%") % fs.s % strerror(errno))
, errNo(errno)
{
}