1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>

* cons.saver.c (main): dup2() may be interrupted; take this into
	account.  Do we need to fcntl() stderr, or is it enough to close()
	it before recreating it?
This commit is contained in:
Miguel de Icaza 1999-04-05 20:18:16 +00:00
parent c7a8f4846e
commit 606c833f93
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* cons.saver.c (main): dup2() may be interrupted; take this into
account. Do we need to fcntl() stderr, or is it enough to close()
it before recreating it?
1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* dlg.c (dlg_run_done): Do not call the callback of a NULL current

View File

@ -26,6 +26,7 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
@ -326,7 +327,8 @@ int main (int argc, char **argv)
exit (1);
if (stderr_fd != 2)
dup2 (stderr_fd, 2);
while (dup2 (stderr_fd, 2) == -1 && errno == EINTR)
;
if (argc != 2){
/* Wrong number of arguments */