Re,
On 11/11/2014 11:21 AM, Thijs Kinkhorst wrote:
> Interesting: it doesn't fail when running with -v. But doesn't use my
> standard dialog frontend either...
the -v options forces needrestart to use NeedRestart::UI::stdio which
does not use debconf.
Could you please run needrestart (without -v) again and run `pstree -a`?
There should be debconf's frontend running as the parent process of
needrestart:
| | `-bash
| | `-frontend -w /usr/share/debconf/frontend
/usr/sbin/needrestart
| | `-needrestart /usr/sbin/needrestart
If the frontend is running and the debconf commands (SET, SUBST, etc.)
showing up on the tty something screwed up the fd's.
needrestart's stdin/stdout are piped to debconf's frontend - therefore
needrestart needs to do some fd dupping operations in NeedRestart/UI.pm
to be able to use Term::ReadKey (progressbar stuff).
Your /dev/tty is a valid character device?
$ ls -lha /dev/tty
crw-rw-rw- 1 root tty 5, 0 Nov 12 21:19 /dev/tty
HTH,
Thomas
--
:: WWW: http://fiasko-nw.net/~thomas/ ::
::: Jabber: xmpp:[email protected] :::
:: flickr: http://www.flickr.com/photos/laugufe/ ::
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]