aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/pty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/pty.cc')
-rw-r--r--paludis/util/pty.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/paludis/util/pty.cc b/paludis/util/pty.cc
index 68c2c2e8c..d39b1282f 100644
--- a/paludis/util/pty.cc
+++ b/paludis/util/pty.cc
@@ -40,19 +40,12 @@ PtyError::PtyError(const std::string & our_message) throw () :
{
}
-Pty::Pty()
+Pty::Pty() : Pty(false, 0, 0)
{
- _init(false, 0, 0);
}
Pty::Pty(const bool close_exec, const unsigned short columns, const unsigned short lines)
{
- _init(close_exec, columns, lines);
-}
-
-void
-Pty::_init(const bool close_exec, const unsigned short columns, const unsigned short lines)
-{
Context context("When creating pty FDs:");
_fds[0] = posix_openpt(O_RDWR | O_NOCTTY | (close_exec ? O_CLOEXEC : 0));