Bug#712537: python3-gi: spawn_async returns pid as 0
Helmut Grohne
helmut at subdivi.de
Sun Jun 16 22:27:39 UTC 2013
Package: python3-gi
Version: 3.8.2-1
Severity: normal
Dear Maintainer,
Please consider the following interaction with the python3.3
interpreter.
$ python3
Python 3.2.4 (default, May 8 2013, 20:55:18)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import GObject
>>> GObject.spawn_async(["/bin/sleep", "1"], flags=GObject.SPAWN_DO_NOT_REAP_CHILD)
(0, None, None, None)
>>>
According to the documentation at
https://developer.gnome.org/pygobject/stable/glib-functions.html#function-glib--spawn-async
the first element of the tuple returned by spawn_async is the pid of the
spawned process. When using python 2.x (python-gi), this is the case as
advertise. When using python3, the pid is not correctly reported as can
be seen above. Both versions actually start the process.
Helmut
-- System Information:
Versions of packages python3-gi depends on:
ii gir1.2-glib-2.0 1.36.0-2+b1
ii libc6 2.17-5
ii libffi6 3.0.13-4
ii libgirepository-1.0-1 1.36.0-2+b1
ii libglib2.0-0 2.36.3-1
ii multiarch-support 2.17-5
ii python3 3.2.3-7
More information about the pkg-gnome-maintainers
mailing list