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

POSIX_SPAWN_* flags have incorrect type #3627

Closed
CameronNemo opened this issue Mar 19, 2024 · 0 comments · Fixed by #3629
Closed

POSIX_SPAWN_* flags have incorrect type #3627

CameronNemo opened this issue Mar 19, 2024 · 0 comments · Fixed by #3629
Labels
C-bug Category: bug

Comments

@CameronNemo
Copy link

The following flags are defined as type c_int, even though the posix_spawnattr_setflags function demands that flags be of type c_short:

  • POSIX_SPAWN_SETSID
  • POSIX_SPAWN_RESETIDS
  • POSIX_SPAWN_USEVFORK
  • POSIX_SPAWN_SETPGROUP
  • POSIX_SPAWN_SETSIGDEF
  • POSIX_SPAWN_SETSIGMASK
  • POSIX_SPAWN_SETSCHEDULER
  • POSIX_SPAWN_SETSCHEDPARAM

See function signature here: https://docs.rs/libc/latest/libc/fn.posix_spawnattr_setflags.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant