mirror of https://github.com/MidnightCommander/mc
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:
parent
c7a8f4846e
commit
606c833f93
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue