Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
f9c86370
Commit
f9c86370
authored
Feb 03, 2015
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extra logging for inotify code.
parent
2941d3ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
src/cache.c
src/cache.c
+4
-5
src/inotify.c
src/inotify.c
+3
-1
src/option.c
src/option.c
+3
-1
No files found.
src/cache.c
View file @
f9c86370
...
@@ -1022,11 +1022,10 @@ int read_hostsfile(char *filename, unsigned int index, int cache_size, struct cr
...
@@ -1022,11 +1022,10 @@ int read_hostsfile(char *filename, unsigned int index, int cache_size, struct cr
fclose
(
f
);
fclose
(
f
);
if
(
rhash
)
if
(
rhash
)
{
rehash
(
name_count
);
rehash
(
name_count
);
my_syslog
(
LOG_INFO
,
_
(
"read %s - %d addresses"
),
filename
,
addr_count
);
my_syslog
(
LOG_INFO
,
_
(
"read %s - %d addresses"
),
filename
,
addr_count
);
}
return
name_count
;
return
name_count
;
}
}
...
...
src/inotify.c
View file @
f9c86370
...
@@ -192,7 +192,9 @@ int inotify_check(time_t now)
...
@@ -192,7 +192,9 @@ int inotify_check(time_t now)
strcpy
(
path
,
ah
->
fname
);
strcpy
(
path
,
ah
->
fname
);
strcat
(
path
,
"/"
);
strcat
(
path
,
"/"
);
strcat
(
path
,
in
->
name
);
strcat
(
path
,
in
->
name
);
my_syslog
(
LOG_INFO
,
_
(
"inotify, new or changed file %s"
),
path
);
if
(
ah
->
flags
&
AH_HOSTS
)
if
(
ah
->
flags
&
AH_HOSTS
)
{
{
read_hostsfile
(
path
,
ah
->
index
,
0
,
NULL
,
0
);
read_hostsfile
(
path
,
ah
->
index
,
0
,
NULL
,
0
);
...
...
src/option.c
View file @
f9c86370
...
@@ -4068,11 +4068,13 @@ static void read_file(char *file, FILE *f, int hard_opt)
...
@@ -4068,11 +4068,13 @@ static void read_file(char *file, FILE *f, int hard_opt)
#ifdef HAVE_DHCP
#ifdef HAVE_DHCP
int
option_read_dynfile
(
char
*
file
,
int
flags
)
int
option_read_dynfile
(
char
*
file
,
int
flags
)
{
{
my_syslog
(
MS_DHCP
|
LOG_INFO
,
_
(
"read %s"
),
file
);
if
(
flags
&
AH_DHCP_HST
)
if
(
flags
&
AH_DHCP_HST
)
return
one_file
(
file
,
LOPT_BANK
);
return
one_file
(
file
,
LOPT_BANK
);
else
if
(
flags
&
AH_DHCP_OPT
)
else
if
(
flags
&
AH_DHCP_OPT
)
return
one_file
(
file
,
LOPT_OPTS
);
return
one_file
(
file
,
LOPT_OPTS
);
return
0
;
return
0
;
}
}
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment