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 interrupt-safe systemcalls #969

Merged
merged 26 commits into from
Dec 21, 2020

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Dec 9, 2020

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

How familiar are you with the codebase?:

10


Implement our own interrupt-safe versions of the following routines:

  • strdup()
  • calloc()
  • realloc()
  • printf()
  • fprintf()
  • vprintf()
  • vfprintf()
  • sprintf()
  • vsprintf()
  • snprintf()
  • vsnprintf()
  • write()
  • accept()
  • recv()
  • recvfrom()
  • sendto()
  • select()
  • pthread_mutex_lock()
  • fopen()

Signed-off-by: DL6ER <dl6er@dl6er.de>
…ed syscalls/{}.c files

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added the Bugfix label Dec 9, 2020
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/ftlv5-3-2-engine-crash/41392/9

Signed-off-by: DL6ER <dl6er@dl6er.de>
…the fallocate() macro, we hav to use a modified name fTLallocate() to implement this function

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER mentioned this pull request Dec 20, 2020
5 tasks
@DL6ER DL6ER marked this pull request as ready for review December 20, 2020 11:33
@DL6ER
Copy link
Member Author

DL6ER commented Dec 20, 2020

Ready for review/testing. The proper function of this branch has been mentioned in a few issue tickets all over the place in this repository.

The merge conflict will be resolved when merging #991 (this PR adds a better solution to the same problem).

@DL6ER DL6ER added the PR: Approval Required Open Pull Request, needs approval label Dec 20, 2020
@dschaper dschaper added PR: Approved Open Pull Request, Approved by required number of reviewers and removed PR: Approval Required Open Pull Request, needs approval labels Dec 20, 2020
@DL6ER DL6ER merged commit 4cd9353 into development Dec 21, 2020
@DL6ER DL6ER deleted the tweak/interruptsafe_systemcalls branch December 21, 2020 09:05
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/ftlv5-3-2-engine-crash/41392/15

@DL6ER DL6ER mentioned this pull request Dec 23, 2020
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-core-web-v5-2-2-and-ftl-v5-3-3-released/41998/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix PR: Approved Open Pull Request, Approved by required number of reviewers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants