Slight change to core/app preferences.

svn path=/trunk/boinc/; revision=104
This commit is contained in:
Eric Heien 2002-06-08 00:55:25 +00:00
parent a28b21a5ee
commit 7ee5689308
1 changed files with 6 additions and 6 deletions

View File

@ -112,6 +112,12 @@ int ACTIVE_TASK::start(bool first_time) {
gi->draw_offscreen = 1; gi->draw_offscreen = 1;
gi->shared_mem_key = ftok(dirname, 'B'); // Generate a unique identifier 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 #ifdef unix
pid = fork(); pid = fork();
if (pid == 0) { 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 // create symbolic links, and hook up descriptors, for input files
// //
for (i=0; i<wup->input_files.size(); i++) { for (i=0; i<wup->input_files.size(); i++) {