Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37819492
en ru br
ALT Linux repos
S:3.23.8-alt1
5.0: 2.8.10-alt3
4.1: 2.8.10-alt2.M41.1
4.0: 2.7.12-alt2.M40.1
+backports:2.8.10-alt2.M40.1
3.0:
+backports:1.6.6a-alt0.M30.4.1

Group :: Publishing
RPM: hplip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: hplip-systray-blockerror.patch
Download


diff --git a/systray.py b/systray.py
index 07db0fa..3a35b30 100644
--- a/systray.py
+++ b/systray.py
@@ -89,7 +89,14 @@ if __name__ == '__main__':
     log.debug("Creating pipe: hpssd (%d) ==> systemtray (%d)" % (w1, r1))
     
     parent_pid = os.getpid()
-    child_pid1 = os.fork()
+    try:
+        child_pid1 = os.fork()
+    except BlockingIOErrror as e:
+        log.error("hp-systray: error during fork - %s" % e)
+        os.close(w1)
+        os.close(r1)
+        mod.unlockInstance()
+        sys.exit(1)
     
     if child_pid1:
         # parent (UI)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin