Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a354da9a
Commit
a354da9a
authored
Mar 27, 2012
by
antirez
Browse files
Correctly set the SIGARLM timer for the software watchdog.
parent
39bd025c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debug.c
View file @
a354da9a
...
...
@@ -692,7 +692,7 @@ void watchdogScheduleSignal(int period) {
/* Will stop the timer if period is 0. */
it
.
it_value
.
tv_sec
=
period
/
1000
;
it
.
it_value
.
tv_usec
=
period
%
1000
;
it
.
it_value
.
tv_usec
=
(
period
%
1000
)
*
1000
;
/* Don't automatically restart. */
it
.
it_interval
.
tv_sec
=
0
;
it
.
it_interval
.
tv_usec
=
0
;
...
...
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