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

always use the passed fd in generated saferead() and safewrite() functions #272

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Apr 5, 2024

  1. qmail-qmqpc: set the correct fd in the substdio structs

    The "to" and "from" substdios are initialized with fd -1 because the socket is
    dynamically allocated at runtime. That is why the passed fd in the saferead()
    and safewrite() functions was ignored and the socket descriptor was always used.
    Update the fd in the substdios once the socket is allocated and then use the
    provided fd.
    DerDakon committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    b5949c7 View commit details
    Browse the repository at this point in the history
  2. qmail-remote: set the correct fd in the substdio structs

    The "to" and "from" substdios are initialized with fd -1 because the socket is
    dynamically allocated at runtime. That is why the passed fd in the saferead()
    and safewrite() functions was ignored and the socket descriptor was always used.
    Update the fd in the substdios once the socket is allocated and then use the
    provided fd.
    DerDakon committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    5e0f605 View commit details
    Browse the repository at this point in the history
  3. timeoute{read,write}: remove the now needless 3rd argument from gener…

    …ator macros
    
    All instances now use the fd that is passed through the interface, so this can
    be removed from the macro.
    DerDakon committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    adf7662 View commit details
    Browse the repository at this point in the history