Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
1e0087be
Commit
1e0087be
authored
Jul 14, 2011
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename global variable changed to reopening.
parent
a0b7d6d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
babeld.c
babeld.c
+6
-6
No files found.
babeld.c
View file @
1e0087be
...
...
@@ -89,7 +89,7 @@ static int kernel_addr_changed = 0;
struct
timeval
check_neighbours_timeout
;
static
volatile
sig_atomic_t
exiting
=
0
,
dumping
=
0
,
changed
=
0
;
static
volatile
sig_atomic_t
exiting
=
0
,
dumping
=
0
,
reopening
=
0
;
int
local_server_socket
=
-
1
,
local_socket
=
-
1
;
int
local_server_port
=
-
1
;
...
...
@@ -619,7 +619,7 @@ main(int argc, char **argv)
}
#endif
if
(
changed
)
{
if
(
reopening
)
{
kernel_dump_time
=
now
.
tv_sec
;
check_neighbours_timeout
=
now
;
expiry_time
=
now
.
tv_sec
;
...
...
@@ -628,7 +628,7 @@ main(int argc, char **argv)
perror
(
"reopen_logfile"
);
break
;
}
changed
=
0
;
reopening
=
0
;
}
if
(
kernel_link_changed
||
kernel_addr_changed
)
{
...
...
@@ -852,9 +852,9 @@ sigdump(int signo)
}
static
void
sig
changed
(
int
signo
)
sig
reopening
(
int
signo
)
{
changed
=
1
;
reopening
=
1
;
}
static
void
...
...
@@ -894,7 +894,7 @@ init_signals(void)
sigaction
(
SIGUSR1
,
&
sa
,
NULL
);
sigemptyset
(
&
ss
);
sa
.
sa_handler
=
sig
changed
;
sa
.
sa_handler
=
sig
reopening
;
sa
.
sa_mask
=
ss
;
sa
.
sa_flags
=
0
;
sigaction
(
SIGUSR2
,
&
sa
,
NULL
);
...
...
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