summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2020-12-06 01:16:33 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2020-12-06 01:32:43 +0900
commit76439eee68d2f1e56ac7a6ab38aceacf0b4b40c8 (patch)
treeaaf937f3916e0db6ef96bd24dc9e4d4358caf4eb /include
parenta38d4473564c5620d272305e91c4133f08034138 (diff)
Call cleanup function for getaddrinfo_a(3) only before fork()
Previously, rb_getaddrinfo_a_before_exec() is called from before_exec(). However, the function needs to be called only before fork(). The change moves it to before_fork().
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/intern/process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/intern/process.h b/include/ruby/internal/intern/process.h
index 5cc0ca242e..fa920cd90a 100644
--- a/include/ruby/internal/intern/process.h
+++ b/include/ruby/internal/intern/process.h
@@ -28,7 +28,7 @@
RBIMPL_SYMBOL_EXPORT_BEGIN()
/* process.c */
-RUBY_EXTERN void (* rb_socket_before_exec_func)();
+RUBY_EXTERN void (* rb_socket_before_fork_func)();
void rb_last_status_set(int status, rb_pid_t pid);
VALUE rb_last_status_get(void);