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.
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list