~ubuntu-branches/ubuntu/jaunty/system-config-printer/jaunty

« back to all changes in this revision

Viewing changes to my-default-printer.py

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-09-10 13:41:39 UTC
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: james.westby@ubuntu.com-20070910134139-svf18bo858u320x9
Tags: upstream-0.7.74+svn1502
ImportĀ upstreamĀ versionĀ 0.7.74+svn1502

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
gettext.textdomain (domain)
35
35
 
36
36
def handle_sigchld (signum, stack):
37
 
    (pid, status) = os.wait ()
38
 
    exitcode = os.WEXITSTATUS (status)
39
 
    if exitcode != 0:
40
 
        print "Child exit status %d" % exitcode
 
37
    try:
 
38
        (pid, status) = os.wait ()
 
39
        exitcode = os.WEXITSTATUS (status)
 
40
        if exitcode != 0:
 
41
            print "Child exit status %d" % exitcode
 
42
    except OSError:
 
43
        pass
41
44
 
42
45
signal.signal (signal.SIGCHLD, handle_sigchld)
43
46