- Coding style fixes. Thanks Axel for the heads up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34097 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
694cb0b270
commit
7d911b2ad9
@ -10,6 +10,7 @@
|
||||
|
||||
#include <sys/resource.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -11,17 +11,18 @@
|
||||
|
||||
|
||||
pid_t
|
||||
wait3(int *status, int options, struct rusage *rusage) {
|
||||
wait3(int *status, int options, struct rusage *rusage)
|
||||
{
|
||||
return wait4(-1, status, options, rusage);
|
||||
}
|
||||
|
||||
|
||||
pid_t
|
||||
wait4(pid_t pid, int *status, int options, struct rusage *rusage) {
|
||||
wait4(pid_t pid, int *status, int options, struct rusage *rusage)
|
||||
{
|
||||
pid_t waitPid = waitpid(pid, status, options);
|
||||
if (waitPid != -1) {
|
||||
if (waitPid != -1)
|
||||
getrusage(RUSAGE_CHILDREN, rusage);
|
||||
}
|
||||
|
||||
return waitPid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user