Lines Matching refs:server_fd
10 static int run_test(int cgroup_fd, int server_fd, bool classid) in run_test() argument
35 fd = connect_to_fd_opts(server_fd, &opts); in run_test()
48 int server_fd, client_fd, cgroup_fd; in test_cgroup_v1v2() local
52 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2()
53 if (!ASSERT_GE(server_fd, 0, "server_fd")) in test_cgroup_v1v2()
55 client_fd = connect_to_fd_opts(server_fd, &opts); in test_cgroup_v1v2()
57 close(server_fd); in test_cgroup_v1v2()
61 close(server_fd); in test_cgroup_v1v2()
67 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2()
68 if (!ASSERT_GE(server_fd, 0, "server_fd")) { in test_cgroup_v1v2()
72 ASSERT_OK(run_test(cgroup_fd, server_fd, false), "cgroup-v2-only"); in test_cgroup_v1v2()
75 ASSERT_OK(run_test(cgroup_fd, server_fd, true), "cgroup-v1v2"); in test_cgroup_v1v2()
77 close(server_fd); in test_cgroup_v1v2()