aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-07-12 18:50:19 +0200
committerMattias Andrée <maandree@operamail.com>2015-07-12 18:50:19 +0200
commit237bf2237991ffa896e8ed06981b70e272537cc1 (patch)
treeeec427cdc09f4094697e90860d765d97791eba9a
parentfix race condition in prepare_reexec (diff)
downloadmds-237bf2237991ffa896e8ed06981b70e272537cc1.tar.gz
mds-237bf2237991ffa896e8ed06981b70e272537cc1.tar.bz2
mds-237bf2237991ffa896e8ed06981b70e272537cc1.tar.xz
there is no longer any need for prepare_reexec to be canned immediately
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--doc/info/mds.texinfo4
-rw-r--r--src/libmdsserver/util.c3
2 files changed, 1 insertions, 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)