Searched refs:from_cs (Results 1 – 1 of 1) sorted by relevance
774 int to_cs[2], from_cs[2]; in cs_create_connection() local799 to_cs[0] = to_cs[1] = from_cs[0] = from_cs[1] = -1; in cs_create_connection()800 if (pipe(to_cs) < 0 || pipe(from_cs) < 0) in cs_create_connection()808 if (from_cs[0] != -1) in cs_create_connection()809 (void)close(from_cs[0]); in cs_create_connection()810 if (from_cs[1] != -1) in cs_create_connection()811 (void)close(from_cs[1]); in cs_create_connection()823 if (dup2(from_cs[1], STDOUT_FILENO) == -1) in cs_create_connection()825 if (dup2(from_cs[1], STDERR_FILENO) == -1) in cs_create_connection()830 (void)close(from_cs[0]); in cs_create_connection()[all …]