[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Shutdownbug in MiNT v1.15.6b



Hi,

> > I guess sleep() call in Shutdown() should cause the taskswitch, no?
> 
> I once tried that, and it caused havoc. Maybe I made a mistake, I'll try
> again, but my first attempt failed.

I meant: in the Shutdown() there is a sleep() call after posting SIGTERMS:

		/* sleep a little while, to give the other processes
		 * a chance to shut down
		 */
		
		if (addtimeout (1000, shutmedown)) 
		{
			do {
				DEBUG (("Sleeping...")); 
				sleep (WAIT_Q, (long) s_hutdown); 
			}
			while (curproc->wait_cond == (long) s_hutdown); 
		}

This looks like it is for giving processes time to shutdown and implies
takswitch.

Gtx,

KMK