if (result == pid)
{
/* Create a new socket for communicating the job finlaization */
answ_sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
/* Send some data to the client to indicate that the job was finished */
printf("(TServerJobControl) Sending application termination data to the LRS (%d)...\n", pid);
temp_port = clnt_addr.sin_port;
clnt_addr.sin_port = htons(LRS_RECV_PORT);
//outData.type = JOB_FINISHED;
//outData.data.execData.pid = pid;
/* This method of sending just once should be changed by something more secure... */
/* If we do this, the TRunningJobs have to be changed so that it can answer for this securer method. */
/* Besides a new socket must be created so that we can listen the ack from the LRS. This 'sock' must not be used */
done = 0;
nblocking(answ_sock);