mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 01:16:17 +01:00
check isatty() before querying so we don't loop endlessly
* gerror.c (g_on_error_query): check isatty() before querying so we don't loop endlessly -Yosh
This commit is contained in:
parent
51bd87c02b
commit
cd3dc1ccbd
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jun 3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gerror.c (g_on_error_query): check isatty() before querying so
|
||||
we don't loop endlessly
|
||||
|
||||
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* acinclude.m4
|
||||
|
@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
||||
query3);
|
||||
fflush (stdout);
|
||||
|
||||
fgets (buf, 8, stdin);
|
||||
#ifndef NATIVE_WIN32
|
||||
if (isatty(0) && isatty(1))
|
||||
fgets (buf, 8, stdin);
|
||||
else
|
||||
strcpy (buf, "E\n");
|
||||
#else
|
||||
fgets (buf, 8, stdin);
|
||||
#endif
|
||||
|
||||
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||
&& buf[1] == '\n')
|
||||
|
9
gerror.c
9
gerror.c
@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
||||
query3);
|
||||
fflush (stdout);
|
||||
|
||||
fgets (buf, 8, stdin);
|
||||
#ifndef NATIVE_WIN32
|
||||
if (isatty(0) && isatty(1))
|
||||
fgets (buf, 8, stdin);
|
||||
else
|
||||
strcpy (buf, "E\n");
|
||||
#else
|
||||
fgets (buf, 8, stdin);
|
||||
#endif
|
||||
|
||||
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||
&& buf[1] == '\n')
|
||||
|
@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
||||
query3);
|
||||
fflush (stdout);
|
||||
|
||||
fgets (buf, 8, stdin);
|
||||
#ifndef NATIVE_WIN32
|
||||
if (isatty(0) && isatty(1))
|
||||
fgets (buf, 8, stdin);
|
||||
else
|
||||
strcpy (buf, "E\n");
|
||||
#else
|
||||
fgets (buf, 8, stdin);
|
||||
#endif
|
||||
|
||||
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||
&& buf[1] == '\n')
|
||||
|
@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
||||
query3);
|
||||
fflush (stdout);
|
||||
|
||||
fgets (buf, 8, stdin);
|
||||
#ifndef NATIVE_WIN32
|
||||
if (isatty(0) && isatty(1))
|
||||
fgets (buf, 8, stdin);
|
||||
else
|
||||
strcpy (buf, "E\n");
|
||||
#else
|
||||
fgets (buf, 8, stdin);
|
||||
#endif
|
||||
|
||||
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||
&& buf[1] == '\n')
|
||||
|
Loading…
Reference in New Issue
Block a user