aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-13 04:33:15 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-13 04:33:15 +0000
commit0d93d2a44ee23d371f0e9536635d56109f340c83 (patch)
tree28c828f065c9c279100288fbd18d3aa166658ef2 /src/main.c
parentf239571c2ad97975edaceb80845b97c5daa77593 (diff)
read /etc/ssl/certs if exist.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1417 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 54f2c318..6739ee2a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -173,6 +173,11 @@ int main(int argc, char *argv[])
app_init();
parse_cmd_opt(argc, argv);
+ sock_init();
+#if USE_SSL
+ ssl_init();
+#endif
+
/* check and create (unix domain) socket for remote operation */
lock_socket = prohibit_duplicate_launch();
if (lock_socket < 0) return 0;
@@ -524,11 +529,6 @@ static void app_init(void)
bind_textdomain_codeset(PACKAGE, CS_UTF_8);
textdomain(PACKAGE);
- sock_init();
-#if USE_SSL
- ssl_init();
-#endif
-
#ifdef G_OS_UNIX
/* ignore SIGPIPE signal for preventing sudden death of program */
signal(SIGPIPE, SIG_IGN);
@@ -698,7 +698,6 @@ void app_will_exit(gboolean force)
#if USE_SSL
ssl_done();
#endif
-
cleanup_console();
sock_cleanup();