Lines Matching refs:log_file
252 if ((error = send(data->log_file, tbuf, cnt, 0)) < 0) {
259 if ((error = send(data->log_file, tbuf, cnt, 0)) >= 0)
294 if (data->log_file != -1) {
295 close(data->log_file);
296 data->log_file = -1;
311 if (data->log_file == -1) {
312 if ((data->log_file = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1)
314 (void)fcntl(data->log_file, F_SETFD, 1);
316 if (data->log_file != -1 && !data->connected) {
325 if (connect(data->log_file, &u.syslogAddr,
327 (void)close(data->log_file);
328 data->log_file = -1;
352 (void)close(data->log_file);
353 data->log_file = -1;