The following commit has been merged in the master branch:
commit d5388296797726e34abe13031dcbdd302319b908
Author: Guillem Jover <[email protected]>
Date: Sat Nov 7 00:07:02 2009 +0100
libdpkg: Split process waiting from subproc_wait_check into subproc_wait
diff --git a/lib/dpkg/subproc.c b/lib/dpkg/subproc.c
index f0d7150..c1bc0a9 100644
--- a/lib/dpkg/subproc.c
+++ b/lib/dpkg/subproc.c
@@ -110,7 +110,7 @@ subproc_check(int status, const char *desc, int flags)
}
int
-subproc_wait_check(pid_t pid, const char *desc, int flags)
+subproc_wait(pid_t pid, const char *desc)
{
pid_t r;
int status;
@@ -122,6 +122,16 @@ subproc_wait_check(pid_t pid, const char *desc, int flags)
ohshite(_("wait for %s failed"), desc);
}
+ return status;
+}
+
+int
+subproc_wait_check(pid_t pid, const char *desc, int flags)
+{
+ int status;
+
+ status = subproc_wait(pid, desc);
+
return subproc_check(status, desc, flags);
}
diff --git a/lib/dpkg/subproc.h b/lib/dpkg/subproc.h
index 2a51a90..290b348 100644
--- a/lib/dpkg/subproc.h
+++ b/lib/dpkg/subproc.h
@@ -35,6 +35,7 @@ void subproc_signals_cleanup(int argc, void **argv);
#define PROCWARN 2
#define PROCNOERR 4
+int subproc_wait(pid_t pid, const char *desc);
int subproc_check(int status, const char *desc, int flags);
int subproc_wait_check(pid_t pid, const char *desc, int flags);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]