Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 186386

Summary: Ctrl+Z doesn't work in Portage >=2.2_pre6747
Product: Portage Development Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: InVCS
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 184128    

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-23 22:22:20 UTC
Ctrl+Z doesn't work in Portage 2.2_pre*. It works correctly in 2.1.*.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-24 01:04:50 UTC
It seems to happen since r6747.
Comment 2 Zac Medico gentoo-dev 2007-07-24 10:26:06 UTC
I've been experimenting in that area and it needs some work. My plan is for portage to have a built-in job control framework.  Some of the concepts are described in section 27.6 of the glibc manual:

http://www.gnu.org/software/libc/manual/html_node/Implementing-a-Shell.html

The goal is to be able to have parallel jobs running in separate sessions similar to those created by dtach (see http://dtach.sourceforge.net/).  Input and output from parallel jobs will be kept separate by having each session do all of it's input and output through it's own pty.

None of the parallel support needs to be implemented in order to solve the Ctrl+Z issue reported in this bug.  All that's needed is just enough code to control a single job.
Comment 3 Zac Medico gentoo-dev 2007-07-25 10:41:39 UTC
In svn r7394 I've simplified the code by passing stdin directly to spawned processes even when their output goes through a pty.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-25 20:44:01 UTC
Thanks.