Lines Matching refs:running

104 static void pids_running(struct tag_pgrp *running, int keep_active);
105 static int check_pids(struct tag_pgrp *running, int *num_active,
110 static void propagate_signal(struct tag_pgrp *running, int keep_active,
118 static void copy_buffered_output(struct tag_pgrp *running);
119 static void write_test_start(struct tag_pgrp *running);
120 static void write_test_end(struct tag_pgrp *running, const char *init_status,
158 struct tag_pgrp *running; in main() local
370 running = in main()
373 if (running == NULL) { in main()
378 memset(running, 0, keep_active * sizeof(struct tag_pgrp)); in main()
379 running[keep_active].pgrp = -1; /* end sentinel */ in main()
526 if (running[i].pgrp == 0) in main()
539 run_child(coll->ary[c], running + i, quiet_mode, in main()
579 propagate_signal(running, keep_active, orphans); in main()
587 err = check_pids(running, &num_active, keep_active, logfile, in main()
591 pids_running(running, keep_active); in main()
628 propagate_signal(running, keep_active, orphans); in main()
668 propagate_signal(struct tag_pgrp *running, int keep_active, in propagate_signal() argument
683 if (running[i].pgrp == 0) in propagate_signal()
688 send_signal, -running[i].pgrp); in propagate_signal()
689 if (kill(-running[i].pgrp, send_signal) != 0) { in propagate_signal()
692 panname, -running[i].pgrp, send_signal, in propagate_signal()
693 running[i].cmd->name, errno, strerror(errno)); in propagate_signal()
695 running[i].stopping = 1; in propagate_signal()
704 check_pids(struct tag_pgrp *running, int *num_active, int keep_active, in check_pids() argument
777 if (running[i].pgrp == cpid) { in check_pids()
778 if ((w == 130) && running[i].stopping && in check_pids()
790 running[i].cmd->name); in check_pids()
797 running[i].cmd->name, in check_pids()
798 (int)(running[i]. in check_pids()
801 running[i]. in check_pids()
824 running[i].cmd->name, in check_pids()
836 running[i].cmd->name, in check_pids()
837 running[i].cmd->cmdline); in check_pids()
840 running[i].cmd->name, in check_pids()
841 running[i].cmd->cmdline); in check_pids()
845 if (running[i].stopping) in check_pids()
850 write_test_start(running + i); in check_pids()
851 copy_buffered_output(running + i); in check_pids()
852 unlink(running[i].output); in check_pids()
855 write_test_end(running + i, "ok", t, in check_pids()
863 if (signaled && !running[i].stopping) in check_pids()
866 running[i].pgrp = 0; in check_pids()
877 running[i].cmd->cmdline)) { in check_pids()
1340 static void copy_buffered_output(struct tag_pgrp *running) in copy_buffered_output() argument
1344 tag_output = slurp(running->output); in copy_buffered_output()
1355 static void write_test_start(struct tag_pgrp *running) in write_test_start() argument
1361 "<<<test_start>>>", running->cmd->name, running->mystime, in write_test_start()
1362 running->cmd->cmdline, "", "exit", "<<<test_output>>>"); in write_test_start()
1368 write_test_end(struct tag_pgrp *running, const char *init_status, in write_test_end() argument
1377 (long)(exit_time - running->mystime), term_type, term_id, in write_test_end()
1388 static void pids_running(struct tag_pgrp *running, int keep_active) in pids_running() argument
1394 if (running[i].pgrp != 0) in pids_running()
1395 fprintf(stderr, "%d ", running[i].pgrp); in pids_running()