summaryrefslogtreecommitdiff
path: root/src/exe_action.c
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-10-09 19:44:23 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-10-09 19:44:23 -0700
commit9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26 (patch)
tree44f8f49c85ccc515d7ba071de1bd7eb69f411c8b /src/exe_action.c
parent085b30c4fb0afe2dce88363b16068113c7c267c1 (diff)
downloadvyatta-cfg-9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26.tar.gz
vyatta-cfg-9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26.zip
commit post-processing performance optimization
* convert subshell invocations to library function calls. * reduce boot time by ~40 seconds for "certain configuration".
Diffstat (limited to 'src/exe_action.c')
-rw-r--r--src/exe_action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exe_action.c b/src/exe_action.c
index 200ec2d..ee884c3 100644
--- a/src/exe_action.c
+++ b/src/exe_action.c
@@ -49,6 +49,9 @@ main(int argc, char** argv)
char *path = NULL;
unsigned long act = 0;
+ /* this is needed before calling certain glib functions */
+ g_type_init();
+
//grab inputs
while ((ch = getopt(argc, argv, "dhp:a:")) != -1) {
switch (ch) {