Lines 71-76
main(int argc, char *argv[])
Link Here
|
71 |
long pid; |
71 |
long pid; |
72 |
char *s, *end; |
72 |
char *s, *end; |
73 |
double timeout; |
73 |
double timeout; |
|
|
74 |
pid_t me; |
74 |
|
75 |
|
75 |
tflag = verbose = 0; |
76 |
tflag = verbose = 0; |
76 |
memset(&itv, 0, sizeof(itv)); |
77 |
memset(&itv, 0, sizeof(itv)); |
Lines 118-123
main(int argc, char *argv[])
Link Here
|
118 |
if (argc == 0) |
119 |
if (argc == 0) |
119 |
usage(); |
120 |
usage(); |
120 |
|
121 |
|
|
|
122 |
me = getpid(); |
123 |
|
121 |
kq = kqueue(); |
124 |
kq = kqueue(); |
122 |
if (kq == -1) |
125 |
if (kq == -1) |
123 |
err(1, "kqueue"); |
126 |
err(1, "kqueue"); |
Lines 136-141
main(int argc, char *argv[])
Link Here
|
136 |
warnx("%s: bad process id", s); |
139 |
warnx("%s: bad process id", s); |
137 |
continue; |
140 |
continue; |
138 |
} |
141 |
} |
|
|
142 |
if (pid == me) { |
143 |
warnx("%s: ignoring own process id", s); |
144 |
continue; |
145 |
} |
139 |
duplicate = 0; |
146 |
duplicate = 0; |
140 |
for (i = 0; i < nleft; i++) |
147 |
for (i = 0; i < nleft; i++) |
141 |
if (e[i].ident == (uintptr_t)pid) |
148 |
if (e[i].ident == (uintptr_t)pid) |
142 |
- |
|
|