From c610327c9aab2a5392c19e9510861fe26b030060 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 18 Oct 2008 02:08:11 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- buffer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/buffer.py b/buffer.py index 2c9787a..603eb65 100644 --- a/buffer.py +++ b/buffer.py @@ -548,13 +548,11 @@ class PipeBuffer(Buffer): else: self._name = '*Pipe*' - self.term = self.terms[term]() - self._pid, self._pty = pty.fork() if self._pid == 0: - # child process os.execve(cmd, [cmd] + args, {'TERM': self.term.name}) + self.term = self.terms[term]() self._lock = threading.Lock() self._towrite = '' self._done = False @@ -606,7 +604,6 @@ class PipeBuffer(Buffer): if ifd: data = os.read(ifd[0], 1024) end = self.get_buffer_end() - #data = self._filter_output(data) data = self.term.filter(data) self.insert_string(end, data, force=True, act=ACT_NONE) if ofd: