mirror of https://github.com/BOINC/boinc.git
Slight change to core/app preferences.
svn path=/trunk/boinc/; revision=104
This commit is contained in:
parent
a28b21a5ee
commit
7ee5689308
12
client/app.C
12
client/app.C
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in New Issue