diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-03-16 20:42:27 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-03-16 20:42:27 +0100 |
| commit | 47dfb3fac23721f76fc3084835f2c3c6382777ce (patch) | |
| tree | 84b5315159908aca43cf130877379e7c9f6dc12e | |
| parent | 39d8d407894b9d6416bac445440b0a761c8afe56 (diff) | |
| download | python-apt-47dfb3fac23721f76fc3084835f2c3c6382777ce.tar.gz | |
python/progress.cc: Fix InstallProgress to set child_pid (LP: #1177720)
We do not wait for a child at all otherwise.
| -rw-r--r-- | python/progress.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/progress.cc b/python/progress.cc index a7cf1afa..9b813d74 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -362,6 +362,9 @@ pkgPackageManager::OrderResult PyInstallProgress::Run(pkgPackageManager *pm) child_id = fork(); } + PyObject *child_o = PyLong_FromLong(child_id); + PyObject_SetAttrString(callbackInst, "child_pid", child_o); + Py_DECREF(child_o); #if 0 // FIXME: this needs to be merged into apt to support medium swaping if (child_id == 0) { |
