Mageia Bugzilla – Attachment 6714 Details for
Bug 16085
system-config-printer traceback when adding appsock/jetdirect printer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
signal only works in main thread
signal_error.patch (text/plain), 655 bytes, created by
Philippe Makowski
on 2015-06-08 19:08:04 CEST
(
hide
)
Description:
signal only works in main thread
Filename:
MIME Type:
Creator:
Philippe Makowski
Created:
2015-06-08 19:08:04 CEST
Size:
655 bytes
patch
obsolete
>--- /usr/share/system-config-printer/mga_printer_custom.py 2015-04-09 20:27:34.000000000 +0200 >+++ /home/philippe/mageia/cauldron/mga_printer_custom.py 2015-06-06 19:47:23.846367320 +0200 >@@ -38,7 +38,13 @@ > os.system("/sbin/modprobe ppdev") > > def is_installed_packages(packages): >- signal.signal (signal.SIGCHLD, signal.SIG_DFL) >+ # 2015-06-06 Philippe Makowski >+ # for now only avoid error if we are not in the main thread >+ # better use threading module for that I guess >+ try: >+ signal.signal (signal.SIGCHLD, signal.SIG_DFL) >+ except ValueError: >+ pass > > all_packages = "" > for package in packages: >
--- /usr/share/system-config-printer/mga_printer_custom.py 2015-04-09 20:27:34.000000000 +0200 +++ /home/philippe/mageia/cauldron/mga_printer_custom.py 2015-06-06 19:47:23.846367320 +0200 @@ -38,7 +38,13 @@ os.system("/sbin/modprobe ppdev") def is_installed_packages(packages): - signal.signal (signal.SIGCHLD, signal.SIG_DFL) + # 2015-06-06 Philippe Makowski + # for now only avoid error if we are not in the main thread + # better use threading module for that I guess + try: + signal.signal (signal.SIGCHLD, signal.SIG_DFL) + except ValueError: + pass all_packages = "" for package in packages:
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16085
: 6714