[fixed linewrap prob] Fix user/kernel times of GetProcessTimes()

Sidney Fong wine at sidney.hk
Sun Oct 22 03:20:34 CDT 2006


The previous patch seems to have been corrupted by line wraps. The
correct patch is attached with the requisite information. For
convenience I include the changelog here:

  From 487243c1040f7ed17bd9241fc0f63f3f4774d76d Mon Sep 17 00:00:00 2001
From: FONG Sidney Hok Nang <wine at sidney.hk>
Date: Sun, 22 Oct 2006 15:36:38 +0800
Subject: Fix user/kernel times of GetProcessTimes()

Changes:
Fix the known bug[1] of GetProcessTimes() where it originally returned the
user/kernel times of the current process instead of the designated one

Notes:
POSIX does not seem to have a good way to get the rusage of a running
process.
Therefore a not-so-clean workaround is implemented as get_process_rusage(),
using ptrace to stop the designated process so we can wait4() it.

[1]: See bottom of http://source.winehq.org/WineAPI/GetProcessTimes.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetProcessTimes.patch
Type: text/x-patch
Size: 10798 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061022/86f1b99c/GetProcessTimes.bin


More information about the wine-patches mailing list