projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2008-06-13 Mark Probst <mark.probst@gmail.com>
[mono.git]
/
mono
/
metadata
/
console-io.c
diff --git
a/mono/metadata/console-io.c
b/mono/metadata/console-io.c
index 6e374674bcca8a7b3ebb5c22e8270547263d6e98..1d5a6c855126551aa9de0791c2d3123424213135 100644
(file)
--- a/
mono/metadata/console-io.c
+++ b/
mono/metadata/console-io.c
@@
-13,9
+13,13
@@
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include <sys/time.h>
+#endif
#include <sys/types.h>
#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
+#endif
#include <mono/metadata/appdomain.h>
#include <mono/metadata/object-internals.h>
#include <mono/metadata/class-internals.h>
#include <mono/metadata/appdomain.h>
#include <mono/metadata/object-internals.h>
#include <mono/metadata/class-internals.h>
@@
-274,6
+278,7
@@
ves_icall_System_ConsoleDriver_TtySetup (MonoString *teardown, char *verase, cha
if (setup_finished)
return TRUE;
if (setup_finished)
return TRUE;
+ signal (SIGINT, sigint_handler);
setup_finished = TRUE;
if (!atexit_called) {
if (teardown != NULL)
setup_finished = TRUE;
if (!atexit_called) {
if (teardown != NULL)