From 4d7ac88c6827fab1e25238415ed0ebdf7d7f5404 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 25 Feb 2010 13:29:41 +0100 Subject: * apt-pkg/deb/dpkgpm.cc: - fix backgrounding when dpkg runs (closes: #486222) --- apt-pkg/deb/dpkgpm.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'apt-pkg') diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 9d144a227..8abe3f5c6 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -946,6 +946,7 @@ bool pkgDPkgPM::Go(int OutStatusFd) rtt = tt; cfmakeraw(&rtt); rtt.c_lflag &= ~ECHO; + rtt.c_lflag |= ISIG; // block SIGTTOU during tcsetattr to prevent a hang if // the process is a member of the background process group // http://www.opengroup.org/onlinepubs/000095399/functions/tcsetattr.html -- cgit v1.2.3