Lines Matching refs:TT
42 if (pid == TT.cur_pid) return 0;
50 kill(pid, TT.signum);
52 struct int_list *new = xmalloc(sizeof(*TT.pids));
54 new->next = TT.pids;
55 TT.pids = new;
58 if (TT.names[offset] == name) {
59 TT.err[offset] = errno;
66 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
75 TT.names = toys.optargs;
76 TT.signum = SIGTERM;
83 if (TT.s || (*TT.names && **TT.names == '-')) {
84 if (0 > (TT.signum = sig_to_num(TT.s ? TT.s : (*TT.names)+1))) {
88 if (!TT.s) {
89 TT.names++;
96 TT.cur_pid = getpid();
98 TT.err = xmalloc(2*toys.optc);
99 for (i=0; i<toys.optc; i++) TT.err[i] = ESRCH;
100 names_to_pid(TT.names, kill_process, 1);
102 if (TT.err[i]) {
104 errno = TT.err[i];
105 perror_msg_raw(TT.names[i]);
110 struct int_list *p = TT.pids;
119 free(TT.err);
120 llist_traverse(TT.pids, free);