FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu Development

LinkBack Thread Tools
Old 03-29-2012, 12:48 PM
Vratislav Podzimek
Default Catch exception when returning tty control to init on s390(x)

Resolves: rhbz#747219

This patch fixes the problem on s390(x) where we cannot return the tty to init's control.
We don't need to do that there because there is no prompt to hit Ctrl+C on s390(x), so
simple pass should be ok.

anaconda | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index 170bc3f..b17d0e5 100755
--- a/anaconda
+++ b/anaconda
@@ -39,7 +39,11 @@ wm_pid = None
xserver_pid = None

def return_tty(fd, pgrp_id):
- os.tcsetpgrp(fd, pgrp_id)
+ try:
+ os.tcsetpgrp(fd, pgrp_id)
+ except OSError as oserr:
+ #fails on s390 and s390x where we don't need it
+ pass

# Make sure messages sent through python's warnings module get logged.
def AnacondaShowWarning(message, category, filename, lineno, file=sys.stderr, line=None):

Anaconda-devel-list mailing list

Thread Tools

All times are GMT. The time now is 04:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org