diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-09-05 03:44:10 -0700 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-09-07 11:42:06 +0200 |
commit | 801d069af4e660b6448928509f7599b6571dadb3 (patch) | |
tree | 81df0e03155bf0c544763318330222482e064d61 | |
parent | cdb07d2cd52af39feb425e6d36c02b30916b9f0a (diff) |
daemon.c: make _fork_parent static inline again
The commit cf649082c7d4 ("remove forced gcc optimization") removed -O3
optimization specified in the code for the function _fork_parent, but at
the same time it removed the 'static inline' part of the function
definition. That change seems unintended and _fork_parent is not a part
of the libc interface. Make it static inline again.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r-- | libc/unistd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 53fd902bf..599c3c8e6 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -63,7 +63,7 @@ /* use clone() to get fork() like behavior here -- we just want to disassociate * from the controlling terminal */ -pid_t _fork_parent(void) +static inline pid_t _fork_parent(void) { INTERNAL_SYSCALL_DECL(err); register long ret = INTERNAL_SYSCALL(clone, err, 2, CLONE_VM, 0); |