mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02: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:
@@ -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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* 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>
|
Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* acinclude.m4
|
* acinclude.m4
|
||||||
|
@@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
|||||||
query3);
|
query3);
|
||||||
fflush (stdout);
|
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')
|
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||||
&& buf[1] == '\n')
|
&& buf[1] == '\n')
|
||||||
|
9
gerror.c
9
gerror.c
@@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
|||||||
query3);
|
query3);
|
||||||
fflush (stdout);
|
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')
|
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||||
&& buf[1] == '\n')
|
&& buf[1] == '\n')
|
||||||
|
@@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
|||||||
query3);
|
query3);
|
||||||
fflush (stdout);
|
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')
|
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||||
&& buf[1] == '\n')
|
&& buf[1] == '\n')
|
||||||
|
@@ -111,7 +111,14 @@ g_on_error_query (const gchar *prg_name)
|
|||||||
query3);
|
query3);
|
||||||
fflush (stdout);
|
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')
|
if ((buf[0] == 'E' || buf[0] == 'e')
|
||||||
&& buf[1] == '\n')
|
&& buf[1] == '\n')
|
||||||
|
Reference in New Issue
Block a user