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 2933 of file remake.cpp.
2934{
2935 if (false)
2936 {
2938 perror(
"Failed to send targets to server");
2940 }
2943
2944
2945#ifdef WINDOWS
2954#else
2964#ifdef MACOSX
2968#endif
2969#endif
2970
2971
2972 char *
id =
getenv(
"REMAKE_JOB_ID");
2973 int job_id =
id ?
atoi(
id) : -1;
2976
2977
2978 for (string_list::const_iterator
i = targets.begin(),
2980 {
2982 std::string
s =
'T' + *
i;
2986 }
2987
2988
2989 for (variable_map::const_iterator
i =
variables.begin(),
2991 {
2992 DEBUG_open <<
"Sending variable " <<
i->first <<
"... ";
2993 std::string
s =
'V' +
i->first;
2997 for (string_list::const_iterator
j =
i->second.begin(),
2999 {
3000 std::string
s =
'W' + *
j;
3001 len =
s.length() + 1;
3004 }
3005 }
3006
3007
3012}
static variable_map variables
static char * socket_name
static socket_t socket_fd
Referenced by main().