1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
--- a/inetd.c
+++ b/inetd.c
@@ -317,12 +317,14 @@ fd_grow(fd_set **fdsp, int *bytes, int f
struct sigaction sa, sapipe;
int
-main(int argc, char *argv[])
+main(int argc, char *argv[], char *envp[])
{
fd_set *fdsrp = NULL;
int readablen = 0, ch;
struct servtab *sep;
+ initsetproctitle(argc, argv, envp);
+
while ((ch = getopt(argc, argv, "dR:")) != -1)
switch (ch) {
case 'd':
|