From 7ee56893083b9353b908c9f31b1dafb28ecf08e7 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Sat, 8 Jun 2002 00:55:25 +0000 Subject: [PATCH] Slight change to core/app preferences. svn path=/trunk/boinc/; revision=104 --- client/app.C | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/app.C b/client/app.C index b821c9ef2f..346816a4f3 100644 --- a/client/app.C +++ b/client/app.C @@ -112,6 +112,12 @@ int ACTIVE_TASK::start(bool first_time) { gi->draw_offscreen = 1; gi->shared_mem_key = ftok(dirname, 'B'); // Generate a unique identifier + // Write out the app prefs + sprintf( prefs_path, "%s/%s", dirname, "prefs.xml" ); + prefs_fd = fopen( prefs_path, "w" ); + gi->write_prefs(prefs_fd); + fclose(prefs_fd); + #ifdef unix pid = fork(); if (pid == 0) { @@ -141,12 +147,6 @@ int ACTIVE_TASK::start(bool first_time) { } } - // Write out the app prefs - sprintf( prefs_path, "%s/%s", dirname, "prefs.xml" ); - prefs_fd = fopen( prefs_path, "w" ); - gi->write_prefs(prefs_fd); - fclose(prefs_fd); - // create symbolic links, and hook up descriptors, for input files // for (i=0; iinput_files.size(); i++) {