Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186386 - Ctrl+Z doesn't work in Portage >=2.2_pre6747
Summary: Ctrl+Z doesn't work in Portage >=2.2_pre6747
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 184128
  Show dependency tree
 
Reported: 2007-07-23 22:22 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-07-25 20:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.