Merge pull request #601 from knocte/sock_improvements
[mono.git] / mono / mini / mini-posix.c
index 9fec75e966f91becd8fd9df6b073bd940dc87990..d3e5c907294130f94e33c9b276cea7d790ddaac8 100644 (file)
@@ -100,7 +100,17 @@ mono_runtime_cleanup_handlers (void)
 {
 }
 
+pid_t
+mono_runtime_syscall_fork (void)
+{
+       g_assert_not_reached();
+       return 0;
+}
 
+void
+mono_gdb_render_native_backtraces (pid_t crashed_pid)
+{
+}
 
 #else
 
@@ -208,10 +218,17 @@ SIG_HANDLER_SIGNATURE (sigusr1_signal_handler)
        
        GET_CONTEXT;
 
-       if (!thread || !domain)
+       if (!thread || !domain) {
                /* The thread might not have started up yet */
                /* FIXME: Specify the synchronization with start_wrapper () in threads.c */
+               mono_debugger_agent_thread_interrupt (ctx, NULL);
+               return;
+       }
+
+       if (thread->ignore_next_signal) {
+               thread->ignore_next_signal = FALSE;
                return;
+       }
 
        if (thread->thread_dump_requested) {
                thread->thread_dump_requested = FALSE;