- Add LICENSE. - Fix malformed BUILD_DEPENDS and remove unnecessary dependencies. Use USE_* in a consistent manner. - Fix inconsistency toolchain usage in build_tools and the others. Hardcoded g++ was always used only for the former even if both gcc and clang were available. - Enable -Werror. - Fix SSP issue on i386 platform. - Let cpp(1) to replace LOCALBASE instead of patching and sed(1). - Use GYP_DEFINES for build variables instead of patching. - Separate the stages of configuration and build from each other. - Add options for localbase and openssl-related configuration to gyp instead of patching. - Fix makesum target. - Fix whitespaces to make portlint happy. - Disable serialization for linking. It is not needed. - Remove hardcoded mozc.xml. - Respect DISABLE_MAKE_JOBS=yes. Do not calculate the factor using the number of CPUs. - Remove a confusing message after pkg-message. - Rename a deprecated function (inactivate-current-input-method-function) in mozc.el in a compatible fashion with the older emacsen [1]. - Add leim-list.el for registration of mozc-mode via LEIM API. "(require 'mozc)" is no longer needed. - Fix a build problem when binutils is installed and ${LOCALBASE}/bin comes first in $PATH [2]. Submitted by: Tadaaki Nagao [1] Reported by: Kenichi Niioka [2] PR: ports/178250 Approved by: maintainer timeout (2 weeks)
49 lines
1,011 B
C++
49 lines
1,011 B
C++
--- server/mozc_server.cc.orig 2013-03-29 13:33:26.000000000 +0900
|
|
+++ server/mozc_server.cc 2013-04-27 15:18:29.000000000 +0900
|
|
@@ -32,6 +32,9 @@
|
|
#ifdef OS_WIN
|
|
#include <windows.h>
|
|
#endif
|
|
+#ifdef OS_FREEBSD
|
|
+#include <signal.h>
|
|
+#endif
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
@@ -51,6 +54,23 @@
|
|
mozc::SessionServer *g_session_server = NULL;
|
|
}
|
|
|
|
+#ifdef OS_FREEBSD
|
|
+static void sig_func(int num)
|
|
+{
|
|
+ VLOG(1) << "signal " << num << " recieved.";
|
|
+ switch (num) {
|
|
+ case SIGINT:
|
|
+ case SIGHUP:
|
|
+ case SIGTERM:
|
|
+ if (g_session_server)
|
|
+ g_session_server->Terminate();
|
|
+ break;
|
|
+ default:
|
|
+ break;
|
|
+ }
|
|
+}
|
|
+#endif
|
|
+
|
|
namespace mozc {
|
|
namespace {
|
|
|
|
@@ -132,6 +152,12 @@
|
|
return -1;
|
|
}
|
|
|
|
+#ifdef OS_FREEBSD
|
|
+ ::signal(SIGINT, sig_func);
|
|
+ ::signal(SIGHUP, sig_func);
|
|
+ ::signal(SIGTERM, sig_func);
|
|
+#endif
|
|
+
|
|
#if defined(OS_WIN)
|
|
// On Windows, ShutdownSessionCallback is not called intentionally in order
|
|
// to avoid crashes oritinates from it. See b/2696087.
|