Commit 251a405a 251a405a7acefa5fbcb835a4d7781d8245f6218f by Sean 'Shaleh' Perry

added EINTR support in daemon()

1 parent 4347d2ab
......@@ -3,6 +3,7 @@ Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 6 Oct 1999 13:55:42 -0700
* Cleanup some compilation issues
* changed "w+" to "w" in called to pop3_mainloop():ofile = fdopen()
why was it called with w+? It is only ever used for writing.
* catch EINTR in call to accept() (play nice w/ our UNIX friends)
Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 5 Oct 1999 23:06:33 -0700
......
......@@ -330,6 +330,8 @@ pop3_daemon (unsigned int maxchildren)
}
if ( (connfd = accept(listenfd, (SA *) &client, &size)) == -1)
{
if (errno == EINTR)
continue;
syslog(LOG_ERR, "accept: %s", strerror(errno));
exit(-1);
}
......