Package: python3-twisted
Version: 16.3.0-1
Severity: normal
Tags: patch upstream

Running "twistd3 web" will block, not daemonize and not start the twistd 
webserver.
Running with -n works fine.

See https://twistedmatrix.com/trac/ticket/8155
Patch:
--- /usr/lib/python3/dist-packages/twisted/scripts/_twistd_unix.py      
2016-08-03 19:28:30.933976876 +0200
+++ /tmp/_twistd_unix.py        2016-08-03 19:28:10.889758303 +0200
@@ -217,7 +217,7 @@
         else:
             statusPipe = self.config.get("statusPipe", None)
             if statusPipe is not None:
-                untilConcludes(os.write, statusPipe, "0")
+                untilConcludes(os.write, statusPipe, b"0")
                 untilConcludes(os.close, statusPipe)
         self.startReactor(None, self.oldstdout, self.oldstderr)
         self.removePID(self.config['pidfile'])
@@ -341,7 +341,7 @@
         @rtype: C{int}
         """
         data = untilConcludes(os.read, readPipe, 100)
-        if data != "0":
+        if data != b"0":
             msg = ("An error has occurred: '%s'\nPlease look at log "
                    "file for more information.\n" % (data[2:],))
             untilConcludes(sys.__stderr__.write, msg)


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-twisted depends on:
ii  python3-openssl           16.0.0-2
ii  python3-service-identity  16.0.0-2
ii  python3-zope.interface    4.2.0-1
pn  python3:any               <none>

Versions of packages python3-twisted recommends:
pn  python3-pam     <none>
ii  python3-serial  3.1-2

Versions of packages python3-twisted suggests:
pn  python3-glade2    <none>
pn  python3-gtk2      <none>
pn  python3-qt4       <none>
ii  python3-tk        3.5.1-1
pn  python3-wxgtk2.8  <none>

-- no debconf information

-- debsums errors found:
debsums: changed file 
/usr/lib/python3/dist-packages/twisted/scripts/_twistd_unix.py (from 
python3-twisted package)

Reply via email to