Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Wrap certain POSIX syscalls #24

Open
vnlitvinov opened this issue Oct 7, 2019 · 0 comments
Open

Wrap certain POSIX syscalls #24

vnlitvinov opened this issue Oct 7, 2019 · 0 comments

Comments

@vnlitvinov
Copy link
Contributor

pysamprof uses signals on POSIX to collect stacks at regular intervals.

According to the spec, incoming signal interrupts a blocking wait of certain system calls (like recv).
To make pysamprof less intrusive it needs to probe these system functions and automatically re-launch them if they were interrupted by profiling signal. Note that those functions shouldn't be restarted if they were interrupted by other signals!

Also note that this most likely applies to both Mac and Linux.

@vnlitvinov vnlitvinov added this to To do in Generic readiness Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests

1 participant