Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 1998 11:30:20 +1030
From:      Mike Smith <mike@smith.net.au>
To:        "Daniel C. Sobral" <dcs@gns.com.br>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: uiomove() 
Message-ID:  <199801260100.LAA00484@word.smith.net.au>
In-Reply-To: Your message of "Sun, 25 Jan 1998 12:52:12 -0200." <199801251452.MAA00740@daniel.sobral> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > Another approach is to ignore ERESTART, ie. never return a short count.
> > That's also quite legitimate with the above code, ie. 
> > 
> > 	if (result == ERESTART) 
> > 		result = 0;
> 
> I don't quite get it. My code can actually restart at any point,
> except for struture uio. What's the _purpose_ of ERESTART?

It should really be "continue", not "restart".  ERESTART tells you that 
the caller has set SA_RESTART for the signal that was delivered, and 
wants system calls interrupted by that signal not to return EINTR.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\ 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801260100.LAA00484>