Patchwork D6865: osutil: allow disabling setprocname via a define passed to the compiler

login
register
mail settings
Submitter phabricator
Date Sept. 23, 2019, 5:15 p.m.
Message ID <574a971a0efbb0b5aba0d4a3a5a49bd4@localhost.localdomain>
Download mbox | patch
Permalink /patch/41735/
State Not Applicable
Headers show

Comments

phabricator - Sept. 23, 2019, 5:15 p.m.
Closed by commit rHG460f8bf58020: osutil: allow disabling setprocname via a define passed to the compiler (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6865?vs=16576&id=16590

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6865/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6865

AFFECTED FILES
  mercurial/cext/osutil.c

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/cext/osutil.c b/mercurial/cext/osutil.c
--- a/mercurial/cext/osutil.c
+++ b/mercurial/cext/osutil.c
@@ -765,6 +765,8 @@ 
 
 #endif /* CMSG_LEN */
 
+/* allow disabling setprocname via compiler flags */
+#ifndef SETPROCNAME_USE_NONE
 #if defined(HAVE_SETPROCTITLE)
 /* setproctitle is the first choice - available in FreeBSD */
 #define SETPROCNAME_USE_SETPROCTITLE
@@ -775,6 +777,7 @@ 
 #else
 #define SETPROCNAME_USE_NONE
 #endif
+#endif /* ndef SETPROCNAME_USE_NONE */
 
 #ifndef SETPROCNAME_USE_NONE
 static PyObject *setprocname(PyObject *self, PyObject *args)