Functions
include/grpc/impl/codegen/fork.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void grpc_fork_handlers_auto_register (void)
 
void grpc_postfork_child (void)
 
void grpc_postfork_parent (void)
 
void grpc_prefork (void)
 

Function Documentation

◆ grpc_fork_handlers_auto_register()

void grpc_fork_handlers_auto_register ( void  )

Definition at line 39 of file fork_windows.cc.

◆ grpc_postfork_child()

void grpc_postfork_child ( void  )

Definition at line 37 of file fork_windows.cc.

◆ grpc_postfork_parent()

void grpc_postfork_parent ( void  )

Definition at line 35 of file fork_windows.cc.

◆ grpc_prefork()

void grpc_prefork ( void  )

gRPC applications should call this before calling fork(). There should be no active gRPC function calls between calling grpc_prefork() and grpc_postfork_parent()/grpc_postfork_child().

Typical use: grpc_prefork(); int pid = fork(); if (pid) { grpc_postfork_parent(); // Parent process.. } else { grpc_postfork_child(); // Child process... }

Definition at line 33 of file fork_windows.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:13