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

Implement apr_shm_perms_set for POSIX shm_open/"classic mmap" shmem #59

Closed
wants to merge 3 commits into from

Conversation

notroj
Copy link
Contributor

@notroj notroj commented Aug 6, 2024

* shmem/unix/shm.c (APR_PERMS_SET_IMPLEMENT): Implement for the
  POSIX shm case.

* test/testshm.c (test_named_perms): Add test case.

CI: Add job using --enable-sysv-shm.

  POSIX shm case and "classic mmap" case.

* test/testshm.c (test_named_perms): Add test case.

CI: Add tests for various SHM configurations, and that the decision
    logic is setting the correct APR_USE_SHM_* variables.
@notroj notroj force-pushed the posix-shm-set-perms branch from b509853 to cdcffc1 Compare August 6, 2024 18:44
@notroj notroj changed the title Implement apr_shm_perms_set for POSIX shm_open() Implement apr_shm_perms_set for POSIX shm_open/"classic mmap" shmem Aug 6, 2024
shmem/unix/shm.c Outdated Show resolved Hide resolved
shmem/unix/shm.c Show resolved Hide resolved
Co-authored-by: Ruediger Pluem <[email protected]>
Copy link
Contributor Author

@notroj notroj left a comment

Choose a reason for hiding this comment

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

Thanks for the review!

shmem/unix/shm.c Show resolved Hide resolved
@asfgit asfgit closed this in 6563993 Aug 7, 2024
asfgit pushed a commit that referenced this pull request Aug 8, 2024
* test/testshm.c (test_named_perms): Add test case.

* shmem/unix/shm.c (APR_PERMS_SET_IMPLEMENT): Implement for the POSIX
  shm and "classic mmap" cases.
    
CI: Add tests for various SHM configurations, and that the decision
        logic is setting the correct APR_USE_SHM_* variables.

* test/testshm.c (test_named_perms): Skip on Mac OS X, hangs in CI
  and fails manually, see dev@apr msgid <CALK=YjNNbfcTcxKm4YiVGS+1aOPTaL3-c8TqhWZLqkyR0PRWVg@mail.gmail.com>.

Submitted by: jorton, rpluem
Github: closes #59


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.8.x@1919739 13f79535-47bb-0310-9956-ffa450edef68
asfgit pushed a commit that referenced this pull request Aug 20, 2024
* test/testshm.c (test_named_perms): Add test case.

* shmem/unix/shm.c (APR_PERMS_SET_IMPLEMENT): Implement for the POSIX
  shm and "classic mmap" cases.
    
CI: Add tests for various SHM configurations, and that the decision
        logic is setting the correct APR_USE_SHM_* variables.

* shmem/unix/shm.c (apr_shm_perms_set): Omit the POSIX shm
  implementation on MacOS (falling through to ENOTIMPL instead), since
  it is either failing or hanging in testing.

See https://lists.apache.org/thread/1gj7j8h0nxlly2j2gnrbh6m7sy4o0fob

Submitted by: jorton, rpluem
Github: closes #59


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1920062 13f79535-47bb-0310-9956-ffa450edef68
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.

2 participants