Lines Matching refs:running

105 static void pids_running(struct tag_pgrp *running, int keep_active);
106 static int check_pids(struct tag_pgrp *running, int *num_active,
111 static void propagate_signal(struct tag_pgrp *running, int keep_active,
119 static void copy_buffered_output(struct tag_pgrp *running);
120 static void write_test_start(struct tag_pgrp *running, int no_kmsg);
121 static void write_test_end(struct tag_pgrp *running, const char *init_status,
162 struct tag_pgrp *running; in main() local
378 running = in main()
381 if (running == NULL) { in main()
386 memset(running, 0, keep_active * sizeof(struct tag_pgrp)); in main()
387 running[keep_active].pgrp = -1; /* end sentinel */ in main()
534 if (running[i].pgrp == 0) in main()
547 run_child(coll->ary[c], running + i, quiet_mode, in main()
587 propagate_signal(running, keep_active, orphans); in main()
595 err = check_pids(running, &num_active, keep_active, logfile, in main()
599 pids_running(running, keep_active); in main()
636 propagate_signal(running, keep_active, orphans); in main()
676 propagate_signal(struct tag_pgrp *running, int keep_active, in propagate_signal() argument
691 if (running[i].pgrp == 0) in propagate_signal()
696 send_signal, -running[i].pgrp); in propagate_signal()
697 if (kill(-running[i].pgrp, send_signal) != 0) { in propagate_signal()
700 panname, -running[i].pgrp, send_signal, in propagate_signal()
701 running[i].cmd->name, errno, strerror(errno)); in propagate_signal()
703 running[i].stopping = 1; in propagate_signal()
712 check_pids(struct tag_pgrp *running, int *num_active, int keep_active, in check_pids() argument
785 if (running[i].pgrp == cpid) { in check_pids()
786 if ((w == 130) && running[i].stopping && in check_pids()
798 running[i].cmd->name); in check_pids()
805 running[i].cmd->name, in check_pids()
806 (int)(running[i]. in check_pids()
809 running[i]. in check_pids()
832 running[i].cmd->name, in check_pids()
844 running[i].cmd->name, in check_pids()
845 running[i].cmd->cmdline); in check_pids()
848 running[i].cmd->name, in check_pids()
849 running[i].cmd->cmdline); in check_pids()
853 if (running[i].stopping) in check_pids()
858 write_test_start(running + i, no_kmsg); in check_pids()
859 copy_buffered_output(running + i); in check_pids()
860 unlink(running[i].output); in check_pids()
863 write_test_end(running + i, "ok", t, in check_pids()
871 if (signaled && !running[i].stopping) in check_pids()
874 running[i].pgrp = 0; in check_pids()
885 running[i].cmd->cmdline)) { in check_pids()
1346 static void copy_buffered_output(struct tag_pgrp *running) in copy_buffered_output() argument
1350 tag_output = slurp(running->output); in copy_buffered_output()
1378 static void write_test_start(struct tag_pgrp *running, int no_kmsg) in write_test_start() argument
1384 "<<<test_start>>>", running->cmd->name, running->mystime, in write_test_start()
1385 running->cmd->cmdline, "", "exit", "<<<test_output>>>"); in write_test_start()
1391 if (strcmp(running->cmd->name, running->cmd->cmdline)) in write_test_start()
1392 write_kmsg("LTP: starting %s (%s)\n", running->cmd->name, in write_test_start()
1393 running->cmd->cmdline); in write_test_start()
1395 write_kmsg("LTP: starting %s\n", running->cmd->name); in write_test_start()
1399 write_test_end(struct tag_pgrp *running, const char *init_status, in write_test_end() argument
1408 (long)(exit_time - running->mystime), term_type, term_id, in write_test_end()
1419 static void pids_running(struct tag_pgrp *running, int keep_active) in pids_running() argument
1425 if (running[i].pgrp != 0) in pids_running()
1426 fprintf(stderr, "%d ", running[i].pgrp); in pids_running()