Differences From Artifact [3d241c367e]:
- File src/util.c — part of check-in [1aff463371] at 2021-12-22 15:17:10 on branch trunk — Add comments to the 3 different temp-filename generator routines to cross-link them to one another. Add fossil_temp_filename() as an option to the "test-tempfile" command. (user: drh size: 23670) [more...]
To Artifact [f4daee2e3e]:
- File src/util.c — part of check-in [9b0ebcaf23] at 2022-04-14 16:58:36 on branch load-control-rework — Per /chat discussion, replace load_control() calls in selective pages with nice() and move load_control() into process_one_web_page(). There is still work to do here, e.g. allowing certain pages through (namely /chat, to facilitate coordination of site defense) and perhaps checking credentials if the load is too high and always allowing admin users. (user: stephan size: 23985) [more...]
| ︙ | ︙ | |||
894 895 896 897 898 899 900 |
break;
}
}
}
#endif
return zBrowser;
}
| > > > > > > > > > > > > > > > > > > > | 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 |
break;
}
}
}
#endif
return zBrowser;
}
/*
** On non-Windows systems, calls nice(2) with the given level. Errors
** are ignored. On Windows this is a no-op.
*/
void fossil_nice(int level){
#ifndef _WIN32
nice(level);
#else
(void)level;
#endif
}
/*
** Calls fossil_nice() with a default level.
*/
void fossil_nice_default(void){
fossil_nice(20);
}
|