Follow-up Comment #9, patch #6210 (project pspp):
Everything looks fine to me, except that I'm confused by the code:
/* Wait for something to happen: either the user hits a key
or changes the size of the window. */
pfd.fd = STDIN_FILENO;
pfd.events = POLLIN;
retval = poll (&pfd, 1, -1);
if (retval > 0 && pfd.revents & POLLIN)
{
I can't find any documentation which says that poll will return when the
program receives SIGWINCH. For that, I thought you needed ppoll. However,
it seems to work, so perhaps I'm missing something.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?6210>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev