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

Use g_spawn_check_wait_status instead of deprecated check_exit_status #42

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

smcv
Copy link
Collaborator

@smcv smcv commented Nov 11, 2022

The function we're calling always expected a wait-status parameter as produced by g_spawn_sync() or waitpid(), not an exit status as returned by WEXITSTATUS(), so its old name was misleading and was deprecated in GLib 2.70. git-evtag correctly passes a wait status to it.

In older GLib versions we can continue to use the deprecated name.

The function we're calling always expected a wait-status parameter
as produced by g_spawn_sync() or waitpid(), not an exit status as
returned by WEXITSTATUS(), so its old name was misleading and was
deprecated in GLib 2.70. git-evtag correctly passes a wait status
to it.

In older GLib versions we can continue to use the deprecated name.

Signed-off-by: Simon McVittie <smcv@collabora.com>
@cgwalters cgwalters merged commit 1b63660 into cgwalters:main Nov 11, 2022
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.

None yet

2 participants