Skip to content

lib/gis: add documentation for G_wait() - #7912

Merged
nilason merged 1 commit into
OSGeo:mainfrom
nilason:fix_g_wait_doc
Sep 12, 2026
Merged

nilason merged 1 commit into
OSGeo:mainfrom
nilason:fix_g_wait_doc

Conversation

@nilason

@nilason nilason commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

lib/gis: add documentation for G_wait()

(Would have been useful for #7847.)

@github-actions github-actions Bot added C Related code is in C libraries labels Sep 11, 2026
@Valyrian-Code

Valyrian-Code commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Sorry, I misread this as an issue, you had already written it.

One thing the docblock does not say is that "process exit code" differs by platform. POSIX returns WEXITSTATUS, so 0-255, while Windows returns GetExitCodeProcess cast to int, so any value including negatives. That is what let an exit code collide with a negative sentinel in #7847.

@echoix

echoix commented Sep 12, 2026

Copy link
Copy Markdown
Member

Sorry, I misread this as an issue, you had already written it.

One thing the docblock does not say is that "process exit code" differs by platform. POSIX returns WEXITSTATUS, so 0-255, while Windows returns GetExitCodeProcess cast to int, so any value including negatives. That is what let an exit code collide with a negative sentinel in #7847.

Would you have a wording suggestion to add to the change, so it can be reviewed by Nicklas?

@nilason

nilason commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

I don’t see anything needs to change here, it is obvious as it is.

@nilason
nilason merged commit 4bb960b into OSGeo:main Sep 12, 2026
26 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C docs libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants