*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
log_switch_nest++;
l = strftime(name, log_filename_size, log_name_patt, tm);
if (l < 0 || l >= log_filename_size)
log_switch_nest++;
l = strftime(name, log_filename_size, log_name_patt, tm);
if (l < 0 || l >= log_filename_size)
fd = sh_open(name, O_WRONLY | O_CREAT | O_APPEND, 0666);
if (fd < 0)
die("Unable to open log file %s: %m", name);
fd = sh_open(name, O_WRONLY | O_CREAT | O_APPEND, 0666);
if (fd < 0)
die("Unable to open log file %s: %m", name);