From 237bf2237991ffa896e8ed06981b70e272537cc1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 12 Jul 2015 18:50:19 +0200 Subject: there is no longer any need for prepare_reexec to be canned immediately MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/mds.texinfo | 4 +--- src/libmdsserver/util.c | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index fc96ca6..1628213 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -5162,9 +5162,7 @@ The kernel appends ` (deleted)' to so it cannot be replaced. @end enumerate -The function will should be called immediately, it -will store the content of @file{/proc/self/exe}. -Return zero on success and @code{-1} on error. +Returns zero on success and @code{-1} on error. @item @code{reexec_server} [(@code{int argc, char** argv, int reexeced}) @arrow{} @code{void}] Re-execute the server. If @code{prepare_reexec} diff --git a/src/libmdsserver/util.c b/src/libmdsserver/util.c index c5aee89..9160672 100644 --- a/src/libmdsserver/util.c +++ b/src/libmdsserver/util.c @@ -94,9 +94,6 @@ char* getenv_nonempty(const char* var) * `/proc/self/exe` once it has been removed, * so it cannot be replaced. * - * The function will should be called immediately, it - * will store the content of `/proc/self/exe`. - * * @return Zero on success, -1 on error */ int prepare_reexec(void) -- cgit v1.2.3-70-g09d2