Connect to the server socket_name, send a request for building targets with some variables, and exit with the status returned by the server.
Definition at line 2934 of file remake.cpp.
2935{
2936 if (false)
2937 {
2939 perror(
"Failed to send targets to server");
2941 }
2944
2945
2946#ifdef WINDOWS
2955#else
2965#ifdef MACOSX
2969#endif
2970#endif
2971
2972
2973 char *
id =
getenv(
"REMAKE_JOB_ID");
2974 int job_id =
id ?
atoi(
id) : -1;
2977
2978
2979 for (string_list::const_iterator
i = targets.begin(),
2981 {
2983 std::string
s =
'T' + *
i;
2987 }
2988
2989
2990 for (variable_map::const_iterator
i =
variables.begin(),
2992 {
2993 DEBUG_open <<
"Sending variable " <<
i->first <<
"... ";
2994 std::string
s =
'V' +
i->first;
2998 for (string_list::const_iterator
j =
i->second.begin(),
3000 {
3001 std::string
s =
'W' + *
j;
3002 len =
s.length() + 1;
3005 }
3006 }
3007
3008
3013}
static variable_map variables
static char * socket_name
static socket_t socket_fd
Referenced by main().