Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change initialization to prevent crash, NEMO#604 #3

Merged
merged 1 commit into from Jan 21, 2013

Conversation

pgerdt
Copy link

@pgerdt pgerdt commented Jan 15, 2013

Move init_kernel_notification() to happen before
init_first_boot_hwclock_time_adjustment_check().

If the file /var/cache/timed/first-boot-hwclock.dat
is missing, then timed tries to set the system time in
init_first_boot_hwclock_time_adjustment_check().

The function tries to stop kernel time change
monitoring, which caused timed to segfault as
the object responsible for monitoring time change
was created in init_kernel_notification(), which
was called after
init_first_boot_hwclock_time_adjustment_check().

Move init_kernel_notification() to happen before
init_first_boot_hwclock_time_adjustment_check().

If the file /var/cache/timed/first-boot-hwclock.dat
is missing, then timed tries to set the system time in
init_first_boot_hwclock_time_adjustment_check().

The function tries to stop kernel time change
monitoring, which caused timed to segfault as
the object responsible for monitoring time change
was created in init_kernel_notification(), which
was called after
init_first_boot_hwclock_time_adjustment_check().
pgerdt pushed a commit that referenced this pull request Jan 21, 2013
Change initialization to prevent crash, NEMO#604
@pgerdt pgerdt merged commit 97781a5 into nemomobile:master Jan 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant