Lines Matching refs:sv
78 struct service *sv; member
89 #define sv (G.sv ) macro
167 sv[i].isgone = 1; in do_rescan()
184 if (sv[i].ino == s.st_ino in do_rescan()
186 && sv[i].dev == s.st_dev in do_rescan()
189 if (sv[i].pid == 0) /* restart if it has died */ in do_rescan()
191 sv[i].isgone = 0; /* "we still see you" */ in do_rescan()
196 struct service *svnew = realloc(sv, (i+1) * sizeof(*sv)); in do_rescan()
202 sv = svnew; in do_rescan()
205 sv[i].dev = s.st_dev; in do_rescan()
207 sv[i].ino = s.st_ino; in do_rescan()
209 sv[i].pid = runsv(d->d_name); in do_rescan()
210 sv[i].isgone = 0; in do_rescan()
224 if (!sv[i].isgone) in do_rescan()
226 if (sv[i].pid) in do_rescan()
227 kill(sv[i].pid, SIGTERM); in do_rescan()
229 sv[i] = sv[svnum]; in do_rescan()
320 if (pid == sv[i].pid) { in runsvdir_main()
322 sv[i].pid = 0; in runsvdir_main()
416 if (sv[i].pid) in runsvdir_main()
417 kill(sv[i].pid, SIGTERM); in runsvdir_main()