[so] [TEMA2][WIN]Blocare gateway
    Andreea Hodea 
    hodea_andreea at yahoo.com
       
    Thu Apr  5 16:36:22 EEST 2012
    
    
  
Salve,
De ore intregi fac teste fara succes, mi-e imposibil sa vad bugul. Daca rulez main-ul de mai jos, gateway-ul ajunge sa afiseze finished, dar procesul nu se termina:
int main() {
	/* Message queue for communication with clients. */
	msgq_t gateway;
	Command msg;
	
	gateway = init();
	do {
		memset(&msg, 0, sizeof(msg));			
	}while (receive(gateway, &msg));
	
	cleanup(gateway);
	dprintf("[GW]finished\n");
	fflush(stdout);
	
	return EXIT_SUCCESS;
}
Procesul nu creeaza alte procese, doar apeleaza functiile pentru cozi din laboratorul 5. Are cineva vreo sugestie?
Multumesc,
Andreea
    
    
More information about the so
mailing list