[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#486222: libapt-pkg: inhibits backgrounding gratuitously



reassign 486222 apt
retitle 486222 libapt-pkg: inhibits backgrounding gratuitously
thanks

Hi!

On Sat, 2008-06-14 at 22:37:06 +1000, Tim Connors wrote:
> I originally thought this was bug #411979, but that was for when
> within an interactive aptitude session.
> 
> For some time now, dpkg has inhibited ctrl-z when run under aptitude
> or apt-get (haven't yet checked whether it also inhibits by itself).

dpkg does nothing of this sort, it's apt and aptitude via libapt-pkg
which are setting the terminal to raw mode, as can be seen in
“apt-pkg/deb/dpkgpm.cc” pkgDPkgPM::Go(), it calls cfmakeraw(), which
resets ISIG on c_lflag, and then no signals get generated on the
control character input.

> If I background an apt-get run, then it will suspend waiting for
> terminal IO as soon as dpkg is invoked:

> Parsing Found/Fixed information... Done
> 
> [2]+  Stopped                 apt-get install xbatt
> > fg
> apt-get install xbatt
> Selecting previously deselected package xbatt.
> (Reading database ... 133673 files and directories currently installed.)
> 
> Quite inconvenient!

Thus reassigning to apt.

thanks,
guillem


Reply to: