From af34d84651b684bb771501f8c493e193e5e65dbc Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 17 May 2023 13:24:41 +0900 Subject: doc: Update documentation for the method spawn and waitpid. Signed-off-by: NIIBE Yutaka --- doc/assuan.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/assuan.texi b/doc/assuan.texi index 111e6e3..090ecec 100644 --- a/doc/assuan.texi +++ b/doc/assuan.texi @@ -951,7 +951,7 @@ This is the function called by @sc{Assuan} to send a message to a file descriptor. It is functionally equivalent to the system @code{sendmsg} function. -@item int (*spawn) (assuan_context_t ctx, pid_t *r_pid, const char *name, const char **argv, assuan_fd_t fd_in, assuan_fd_t fd_out, assuan_fd_t *fd_child_list, void (*atfork) (void *opaque, int reserved), void *atforkvalue, unsigned int flags) +@item int (*spawn) (assuan_context_t ctx, assuan_pid_t *r_pid, const char *name, const char **argv, assuan_fd_t fd_in, assuan_fd_t fd_out, assuan_fd_t *fd_child_list, void (*atfork) (void *opaque, int reserved), void *atforkvalue, unsigned int flags) This is the function called by @sc{Assuan} to spawn a child process. The @code{stdin} and @code{stdout} file descriptors are provided in @code{fd_in} and @code{fd_out} respectively, but can be set to @@ -978,7 +978,7 @@ new console is created and pops up a console window when starting the server. On W32CE systems this flag is ignored. @end table -@item pid_t (*waitpid) (assuan_context_t ctx, pid_t pid, int action, int *status, int options) +@item assuan_pid_t (*waitpid) (assuan_context_t ctx, assuan_pid_t pid, int action, int *status, int options) This is the function called by @sc{Assuan} to wait for the spawned child process @var{pid} to exit, or, if @var{action} is 1, to just release all resources associated with @var{pid} (required on Windows -- cgit v1.2.1