Ack, though I wish the 'pass' could just be restricted to s390x because if OSError happens on non-s390x, I think we should care about that exception. But, I am ok with this as-is. On Thu, Mar 29, 2012 at 02:48:08PM +0200, Vratislav Podzimek wrote: > 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): > -- > 1.7.4.4 > > _______________________________________________ > Anaconda-devel-list mailing list > Anaconda-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/anaconda-devel-list -- David Cantrell <dcantrell@xxxxxxxxxx> Supervisor, Installer Engineering Team Red Hat, Inc. | Westford, MA | EST5EDT _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list