File: setproctitle

package info (click to toggle)
openbsd-inetd 0.20140418-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 804 kB
  • ctags: 1,294
  • sloc: ansic: 17,250; sh: 87; makefile: 74
file content (18 lines) | stat: -rw-r--r-- 399 bytes parent folder | download
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':