Move argument-hiding magic together with argument parsing

Everything else Finit does related to parsing the incoming arguments
is in conf.c, so it makes sense for this block to also reside there.
This commit is contained in:
Tobias Waldekranz committed 2020-10-12 13:09:41 +02:00
1 parent 2ce1a003d5
commit e558d5871b
2 files changed
+18 -13

No files matched your search

-13
View File
@@ -298,19 +298,6 @@ int main(int argc, char *argv[])
*/
conf_parse_cmdline(argc, argv);
/*
* Hide command line arguments from ps (in particular for
* forked children that don't execv()). This is an ugly
* hack that only works on Linux.
* https://web.archive.org/web/20110227041321/http://netsplit.com/2007/01/10/hiding-arguments-from-ps/
*/
if (argc > 1) {
char *arg_end;
arg_end = argv[argc-1] + strlen (argv[argc-1]);
*arg_end = ' ';
}
/*
* Initalize event context.
*/