History log of /haiku/src/libs/bsd/wait.c
Revision Date Author Comments
# 7d961f97 09-Jun-2021 Jérôme Duval <jerome.duval@gmail.com>

sys/resource.h: add rusage compatibility fields, set to zero

POSIX defines this structure but specifies only two fields (which we
already implement). However, both the *BSD and Linux have agreed on
some more fields, which are often assumed to be there by applications.

The benefice of having compatibility fields is
greater as having to patch every other software at HaikuPorts.

Change-Id: Ie28ca2e348aa16b4c57eb3498eb62175100d9b9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4083
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# a295d3f4 10-Oct-2017 Jérôme Duval <jerome.duval@gmail.com>

wait4(): retrieve dead team entries usage information.

* This adds a parameter to the wait_for_child syscall. I extended the test case
to show the actual retrieved information.
* fix #13546


# 7d39f1f1 18-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Get the process information of the correct team by using get_team_usage_info
instead of getrusage.
- Thanks François for insisting on this. :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34133 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4459056d 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Fix tabs. Thatś the price I pay for doing Haiku development outside Haiku.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34099 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d911b2a 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- 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


# 9306738d 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Only try to get usage info if there was no error with waitpid.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34092 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ada17216 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Added wait3() and wait4() to the bsd compatibility library.
- Untested, but should work (will test it when I get home later today).
- This is my first attempt at adding something for compatibility reasons. Let
me know if something in wrong.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34091 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d39f1f13781614037e5376bd979642d8617500b 18-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Get the process information of the correct team by using get_team_usage_info
instead of getrusage.
- Thanks François for insisting on this. :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34133 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4459056ddac8e534ad9fc82b655fd6153beb048a 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Fix tabs. Thatś the price I pay for doing Haiku development outside Haiku.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34099 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d911b2ad9d3f2b616551adf13900445ad0f5f75 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- 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


# 9306738debb4ae38a43cc158c24c46debd86fb71 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Only try to get usage info if there was no error with waitpid.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34092 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ada17216f977d9c02262744ea553da5675340865 17-Nov-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Added wait3() and wait4() to the bsd compatibility library.
- Untested, but should work (will test it when I get home later today).
- This is my first attempt at adding something for compatibility reasons. Let
me know if something in wrong.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34091 a95241bf-73f2-0310-859d-f6bbb57e9c96