summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/progress.cc3
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) {