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?
Этот коммит содержится в:
родитель
c7a8f4846e
Коммит
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>
|
1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
* dlg.c (dlg_run_done): Do not call the callback of a NULL current
|
* dlg.c (dlg_run_done): Do not call the callback of a NULL current
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <errno.h>
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
@ -326,7 +327,8 @@ int main (int argc, char **argv)
|
|||||||
exit (1);
|
exit (1);
|
||||||
|
|
||||||
if (stderr_fd != 2)
|
if (stderr_fd != 2)
|
||||||
dup2 (stderr_fd, 2);
|
while (dup2 (stderr_fd, 2) == -1 && errno == EINTR)
|
||||||
|
;
|
||||||
|
|
||||||
if (argc != 2){
|
if (argc != 2){
|
||||||
/* Wrong number of arguments */
|
/* Wrong number of arguments */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user