Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

times should always return 0 for tms_cutime #510

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

kateinoigakukun
Copy link
Contributor

tms_cutime is the sum of the user times of child processes excluding the current process. Since WASI doesn't provide a way to spawn a new process, this value should always be 0.

Interestingly PSPSDK had exactly the same issue and @fjtrujy found wasi-libc has the issue too 😅 https://github.com/pspdev/pspsdk/pull/193/files/eef342187319ead21cfe9a6598fd79a21188c1fa#diff-8318a7fe507925448c5a85d6bfdeb9f720a24b6d38d583eea8542758898cc4e7

`tms_cutime` is the sum of the user times of child processes *excluding
the current process*. Since WASI doesn't provide a way to spawn a new
process, this value should always be 0.

Co-authored-by: Francisco Javier Trujillo Mata <fjtrujy@gmail.com>
Copy link
Contributor

@yamt yamt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sbc100 sbc100 merged commit 67080fa into WebAssembly:main Jul 3, 2024
8 checks passed
@kateinoigakukun kateinoigakukun deleted the yt/tms_cutime branch July 3, 2024 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants