summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-23 13:24:54 +0200
committerJulian Andres Klode <jak@debian.org>2016-10-05 21:53:38 +0200
commita62eebe5dea48a0274b118a1ea339bc0d1528625 (patch)
treece220b381012ff5cbe79c8df7e3cb34997643e63
parentf5aa6a782f1a8bcf08b572415ec6b521e11a8d82 (diff)
downloadapt-a62eebe5dea48a0274b118a1ea339bc0d1528625.tar.gz
install-progress: Call the real ::fork() in our fork() method
We basically called ourselves before, creating an endless loop. Reported-By: clang (cherry picked from commit d651c4cd71a43c385c3d3bcd3a9f25bf0a67f8f2)
-rw-r--r--apt-pkg/install-progress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/install-progress.h b/apt-pkg/install-progress.h
index 23ddbbec6..b5c133676 100644
--- a/apt-pkg/install-progress.h
+++ b/apt-pkg/install-progress.h
@@ -38,7 +38,7 @@ namespace Progress {
*/
virtual void StartDpkg() {};
- virtual pid_t fork() {return fork(); };
+ virtual pid_t fork() {return ::fork(); };
virtual void Pulse() {};
virtual long GetPulseInterval() {