[so] implementare exit

Maria Nadejde mnadejde at yahoo.com
Sat Nov 3 15:22:23 EET 2007


pot sa folosesc pt exit una din aceste variante?:

if(!strcmp("quit",comanda)||!strcmp("exit",comanda))
	{
		kill(0,SIGINT);
	}
sau kill(0,SIGTERM); sau kill(0,SIGSTOP);

vreau sa-mi verific primele teste pe site si pt
SIGTERM (si SIGINT parca) imi da:
running test_01
make: *** wait: No child processes.  Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes.  Stop.

checker: testing completed (with 116s to spare)

si pt SIGSTOP imi da timeout

cand testez la mine pe calculator arata ca outputul de
pe site pt testul 1:

mnadejde at mnadejde-desktop:~/anul4/so/tema1/maria$
./tema1 < test.txt
> /home/mnadejde/anul4/so/tema1/maria

> Linux

> 
> mnadejde

> 
mnadejde at mnadejde-desktop:~/anul4/so/tema1/maria$

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the so mailing list