]> git.ipfire.org Git - thirdparty/fcron.git/log
thirdparty/fcron.git
3 months agoUpdate version to 3.4.1pre master
Thibault Godouet [Sat, 19 Apr 2025 20:53:04 +0000 (21:53 +0100)] 
Update version to 3.4.1pre

3 months agoConvert existing adhoc unit tests to cmocka.
Thibault Godouet [Sun, 16 Jun 2024 14:53:52 +0000 (15:53 +0100)] 
Convert existing adhoc unit tests to cmocka.

3 months agoFixed fcrontab bug when asked to install a file with relative path.
Thibault Godouet [Fri, 18 Apr 2025 20:07:25 +0000 (21:07 +0100)] 
Fixed fcrontab bug when asked to install a file with relative path.

4 months agoMerge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Sat, 22 Mar 2025 21:01:49 +0000 (21:01 +0000)] 
Merge branch 'master' of github.com:yo8192/fcron

4 months agoUpdate version to 3.4.0, as a production release. ver3_4_0
Thibault Godouet [Sat, 22 Mar 2025 20:46:21 +0000 (20:46 +0000)] 
Update version to 3.4.0, as a production release.

Including changelog from previous version.

5 months agoUpdate actions/deploy-pages to v4
Thibault Godouet [Sat, 22 Feb 2025 15:55:44 +0000 (15:55 +0000)] 
Update actions/deploy-pages to v4

5 months agoUpdate actions/upload-pages-artifact to v3
Thibault Godouet [Sat, 22 Feb 2025 15:52:27 +0000 (15:52 +0000)] 
Update actions/upload-pages-artifact to v3

5 months agoApplied formatting.
Thibault Godouet [Sat, 22 Feb 2025 15:06:22 +0000 (15:06 +0000)] 
Applied formatting.

5 months agoChange the default fcron reload delay from 60s to 5s.
Thibault Godouet [Sat, 22 Feb 2025 14:45:24 +0000 (14:45 +0000)] 
Change the default fcron reload delay from 60s to 5s.

5 months agoSmall doc improvements.
Thibault Godouet [Sat, 22 Feb 2025 14:45:00 +0000 (14:45 +0000)] 
Small doc improvements.

5 months agoChange default maildisplayname to be RFC5322-compliant.
Thibault Godouet [Sat, 22 Feb 2025 14:44:08 +0000 (14:44 +0000)] 
Change default maildisplayname to be RFC5322-compliant.

This will change the "From" header of emails sent by fcron.

5 months agoBetter doc and logging on bootrun jobs.
Thibault Godouet [Sat, 22 Feb 2025 14:41:43 +0000 (14:41 +0000)] 
Better doc and logging on bootrun jobs.

5 months agoUpdate version to 3.4.0pre
Thibault Godouet [Sat, 22 Feb 2025 14:38:28 +0000 (14:38 +0000)] 
Update version to 3.4.0pre

6 months agoUpdate version to 3.3.3, and add change list. ver3_3_3
Thibault Godouet [Sat, 8 Feb 2025 14:23:53 +0000 (14:23 +0000)] 
Update version to 3.3.3, and add change list.

7 months agoAdd a project status to README.md
Thibault Godouet [Wed, 1 Jan 2025 17:09:57 +0000 (17:09 +0000)] 
Add a project status to README.md

7 months agoUpdate copyright to 2025.
Thibault Godouet [Wed, 1 Jan 2025 16:54:33 +0000 (16:54 +0000)] 
Update copyright to 2025.

7 months agoApplied indentation with 'make indent'.
Thibault Godouet [Wed, 1 Jan 2025 11:12:58 +0000 (11:12 +0000)] 
Applied indentation with 'make indent'.

7 months agoMade the suspend log message clearer.
Thibault Godouet [Wed, 1 Jan 2025 10:42:39 +0000 (10:42 +0000)] 
Made the suspend log message clearer.

7 months agoEnable log message on child task completion.
Thibault Godouet [Wed, 1 Jan 2025 00:32:11 +0000 (00:32 +0000)] 
Enable log message on child task completion.

7 months agoChanged indentation of some debug messages.
Thibault Godouet [Tue, 31 Dec 2024 23:55:53 +0000 (23:55 +0000)] 
Changed indentation of some debug messages.

7 months agoFixed infinite loop when an lavg job reaches its 'until' deadline and gets reschedule...
Thibault Godouet [Tue, 31 Dec 2024 23:43:50 +0000 (23:43 +0000)] 
Fixed infinite loop when an lavg job reaches its 'until' deadline and gets rescheduled as the next job to run.

7 months agoUse type bool in signal handling.
Thibault Godouet [Tue, 31 Dec 2024 23:40:48 +0000 (23:40 +0000)] 
Use type bool in signal handling.

7 months agoDefer any work outside of the signal handlers.
Thibault Godouet [Tue, 31 Dec 2024 23:08:21 +0000 (23:08 +0000)] 
Defer any work outside of the signal handlers.

This is to make sure we don't inadvertently call a non-async-signal safe function (see the signal-safety(7) man page).

7 months agoUpdate version to 3.3.3.pre
Thibault Godouet [Tue, 31 Dec 2024 17:52:07 +0000 (17:52 +0000)] 
Update version to 3.3.3.pre

7 months agoFix variable type.
Thibault Godouet [Fri, 27 Dec 2024 16:10:57 +0000 (16:10 +0000)] 
Fix variable type.

7 months agoStop using the SELinux deprecated security_context_t
Thibault Godouet [Fri, 27 Dec 2024 16:05:37 +0000 (16:05 +0000)] 
Stop using the SELinux deprecated security_context_t

7 months agoUse sigaction() when available, instead of the deprecated signal().
Thibault Godouet [Fri, 27 Dec 2024 15:13:47 +0000 (15:13 +0000)] 
Use sigaction() when available, instead of the deprecated signal().

Also check for errors when using signal() or sigset().

7 months agoFixed silent truncation warnings
Thibault Godouet [Fri, 27 Dec 2024 13:15:29 +0000 (13:15 +0000)] 
Fixed silent truncation warnings

7 months agoFix size warning.
Thibault Godouet [Fri, 27 Dec 2024 13:11:21 +0000 (13:11 +0000)] 
Fix size warning.

7 months agoadded 3.3.2 changes.
Thibault Godouet [Fri, 27 Dec 2024 11:06:50 +0000 (11:06 +0000)] 
added 3.3.2 changes.

7 months agoUpdate copyright to 2024. ver3_3_2
Thibault Godouet [Thu, 26 Dec 2024 10:35:18 +0000 (10:35 +0000)] 
Update copyright to 2024.

7 months agoMerge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Thu, 26 Dec 2024 10:26:17 +0000 (10:26 +0000)] 
Merge branch 'master' of github.com:yo8192/fcron

7 months agoUpdate autoconf to 2.71.
Thibault Godouet [Thu, 26 Dec 2024 10:25:13 +0000 (10:25 +0000)] 
Update autoconf to 2.71.

As part of this, switch from the deprecated wait3() to waitpid().

7 months agoAlign help messages of configure options.
Thibault Godouet [Thu, 26 Dec 2024 10:15:12 +0000 (10:15 +0000)] 
Align help messages of configure options.

8 months agofix wording in documentation to make it simpler to follow (#36)
kopp [Sat, 30 Nov 2024 16:58:31 +0000 (17:58 +0100)] 
fix wording in documentation to make it simpler to follow (#36)

* fix wording in documentation to make it simpler to follow

* further improve documentation by reacting to comments in https://github.com/yo8192/fcron/pull/36

* fix necessary dependencies for building documentation

* further improve documentation by reacting to comments in https://github.com/yo8192/fcron/pull/36

9 months agoUse uppercase Job when appropriate in log messages (#35)
castilma [Sun, 20 Oct 2024 15:42:28 +0000 (17:42 +0200)] 
Use uppercase Job when appropriate in log messages (#35)

* print Job with uppercase J when logging that a runonce job ran already

* change 'Job' to uppercase in some log messages to match others

---------

Co-authored-by: Martin Castillo <castilma@uni-bremen.de>
11 months agoRename config key displayname to maildisplayname, and refactor. (#33)
Thibault Godouet [Sat, 24 Aug 2024 22:40:44 +0000 (23:40 +0100)] 
Rename config key displayname to maildisplayname, and refactor. (#33)

The main changes are:

-  rename the fcron.conf config key displayname into maildisplayname, for clarity.
-   move the underlying code into its own mail.c file, with some refactoring to improve clarity and simplify slightly.
-   extend the extra overflow tests to test at the limit, and just over the limit (expecting an overflow error)
-   ensure things work on systems which don't have stdbool.h (which is C99)

Full commit list:
* fix compilation error (couldn't find selinux.h)
* Rename boolean variable names.
* Check for stdbool.h's availability.
* Refactor maildisplayname.
* Move format_displayname() and make_mailbox_addr() into their own file.
* Ignore test binary.
* Rename option displayname to maildisplayname.

11 months agoFeature/fix email From: w/ configurable "displayname" (#17)
Marco Emilio "sphakka" Poleggi [Sat, 24 Aug 2024 15:36:38 +0000 (17:36 +0200)] 
Feature/fix email From: w/ configurable "displayname" (#17)

* WIP: add displayname option

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* Fix configure.in

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* Restored orig configure.in + displayname opt

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* job.c: create_mail():

Process 'displayname', etc. via new function 'make_mailbox()' as per RFC5322.

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* Fixed wrong formatting (tabs => spaces)

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* dev(code, doc, test): displayname handling refactored over two functions.

* code: config handling of displayname moved to a new function
  'format_displayname()' in 'fcronconf.c'; buffer overflow check added. In
  'job.c': restored old "From:" mail header behavior if no displayname; buffer
  overflow check added.
* test: added prototype support in 'Makefile' and 'test/'
* doc: reviewed and cleaned 'en/fcron.conf.5.sgml'

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* dev(code, test): @PR #17, 3rd round.

* Makefile(s): fixed alignement with spaces
* config.in: moved displayname in "Check for fcron..." section. Removed test
    install code.
* fcronconf.c: changed format_displayname()'s arg to avoid confusion with
    globals. Use stdbool. Use aux var when assigning from
    format_displayname().
* crondyn_svr.c, fileconf.c: minimal fixes to avoid conflict with stdbool.
* fcron.conf.in: added comment for possible displayname's future default value.
* global.h: added stdbool.
* job.c: changed make_mailbox_addr()'s arg to avoid confusion with
    globals. Use stdbool.
* test/mailbox_addr.c: rewritten with simpler explicit logic -- valgrinded
    again ;-)

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
---------

Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
11 months agofixed doc entities runatresume/runatreboot
Thibault Godouet [Sat, 24 Aug 2024 08:41:08 +0000 (09:41 +0100)] 
fixed doc entities runatresume/runatreboot

13 months agoAdd documentation on option runatresume.
Thibault Godouet [Sun, 16 Jun 2024 14:56:39 +0000 (15:56 +0100)] 
Add documentation on option runatresume.

14 months agoMerge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Wed, 29 May 2024 16:24:49 +0000 (17:24 +0100)] 
Merge branch 'master' of github.com:yo8192/fcron

14 months agoFix bug where fcrondyn joins two output lines together if a shell command is too...
Thibault Godouet [Wed, 29 May 2024 16:24:28 +0000 (17:24 +0100)] 
Fix bug where fcrondyn joins two output lines together if a shell command is too long.

16 months agoAdd compilation option to allow faster or even instant reload for non-root users...
Elliot Wolk [Mon, 1 Apr 2024 19:04:32 +0000 (15:04 -0400)] 
Add compilation option to allow faster or even instant reload for non-root users (#26)

* fcrontab: refactor sig_daemon() reload delay, add seconds to msg

* configure: add opt to decrease or remove non-root tab reload

* fcrontab: enforce max-fcrontab-delay-seconds in delay for non-root user

* configure: rename max-fcrontab-load => max-fcrontab-reload

* configure: expand usage for max-delay-reload

* fcrontab: refactor fcrontab reload delay calculation for clarity

16 months agofcrondyn: include seconds in fcrondyn -x ls as "YYYY-mm-dd HH:MM:SS" (#27)
Elliot Wolk [Wed, 27 Mar 2024 17:33:03 +0000 (13:33 -0400)] 
fcrondyn: include seconds in fcrondyn -x ls as "YYYY-mm-dd HH:MM:SS" (#27)

* fcrondyn: include seconds in `fcrondyn -x ls` as "YYYY-mm-dd HH:MM:SS"

    commit 739d6ebe60a405daadcb0f5fe59ed991cf36c48f
    Author: Elliot Wolk <elliot.wolk@gmail.com>
    Date:   2011-10-04 03:37:10 -0400

        added a script to install fcron, with numerous patches of my own
        design to make it work, and to include seconds in fcrondyn

* fcrondyn: adjust SCHEDULE field header spacing

22 months agoAdd LICENSE at the root of the repository to make things clearer.
Thibault Godouet [Sat, 30 Sep 2023 15:37:29 +0000 (16:37 +0100)] 
Add LICENSE at the root of the repository to make things clearer.

The license was already present under doc/ (e.g. doc/en/gpl.html) and mentioned at the top of each file of code, but having a license file in the root directory will make it clearer.

23 months agoAdd link to the doc as Github pages in README.
Thibault Godouet [Thu, 31 Aug 2023 12:51:51 +0000 (13:51 +0100)] 
Add link to the doc as Github pages in README.

23 months agoMerge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Thu, 31 Aug 2023 12:31:28 +0000 (13:31 +0100)] 
Merge branch 'master' of github.com:yo8192/fcron

23 months agoExplain how to build the documentation in the README.
Thibault Godouet [Thu, 31 Aug 2023 12:30:55 +0000 (13:30 +0100)] 
Explain how to build the documentation in the README.

23 months agoFix permissions in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:51:14 +0000 (15:51 +0100)] 
Fix permissions in workflow.

23 months agoFix token permission in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:48:49 +0000 (15:48 +0100)] 
Fix token permission in workflow.

23 months agoAdd missing permission to publish doc.
Thibault Godouet [Wed, 30 Aug 2023 14:38:15 +0000 (15:38 +0100)] 
Add missing permission to publish doc.

Also merged the build and publish doc into one job.

23 months agoFix syntax error in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:35:10 +0000 (15:35 +0100)] 
Fix syntax error in workflow.

23 months agoAdded deploy to workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:34:00 +0000 (15:34 +0100)] 
Added deploy to workflow.

23 months agoUse cleaner make doc command in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:13:58 +0000 (15:13 +0100)] 
Use cleaner make doc command in workflow.

23 months agoFix make doc in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:12:57 +0000 (15:12 +0100)] 
Fix make doc in workflow.

23 months agoExplicitly disable sendmail in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:08:42 +0000 (15:08 +0100)] 
Explicitly disable sendmail in workflow.

Otherwise ./configure fails as sendmail isn't installed.

23 months agoCreate the configure script with autoconf in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:04:55 +0000 (15:04 +0100)] 
Create the configure script with autoconf in workflow.

23 months agoFixed package name in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:01:44 +0000 (15:01 +0100)] 
Fixed package name in workflow.

23 months agoRun apt as root in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:00:27 +0000 (15:00 +0100)] 
Run apt as root in workflow.

23 months agoCreate workflow to generate documentation.
Thibault Godouet [Wed, 30 Aug 2023 13:58:09 +0000 (14:58 +0100)] 
Create workflow to generate documentation.

23 months agoAdd missing LDFLAGS on compiler command lines.
Thibault Godouet [Wed, 30 Aug 2023 13:34:25 +0000 (14:34 +0100)] 
Add missing LDFLAGS on compiler command lines.

2 years agoFixed fcrondyn printing truncated strings.
Thibault Godouet [Sun, 9 Jul 2023 20:51:24 +0000 (21:51 +0100)] 
Fixed fcrondyn printing truncated strings.

2 years agoIncrement version from 3.3.1 to 3.3.2.
Thibault Godouet [Sun, 9 Jul 2023 20:48:30 +0000 (21:48 +0100)] 
Increment version from 3.3.1 to 3.3.2.

3 years agoadded 3.3.1 changelog ver3_3_1
Thibault Godouet [Sun, 5 Dec 2021 18:18:25 +0000 (18:18 +0000)] 
added 3.3.1 changelog

3 years agoupdated version to 3.3.1 and updated copyright years
Thibault Godouet [Sun, 5 Dec 2021 18:07:09 +0000 (18:07 +0000)] 
updated version to 3.3.1 and updated copyright years

3 years agofixed parsing of @reboot lines
Thibault Godouet [Sun, 5 Dec 2021 17:55:42 +0000 (17:55 +0000)] 
fixed parsing of @reboot lines

4 years agoremove old link to header selinux/flask.h and selinux/av_permissions.h and depend...
atlant2011 [Mon, 9 Aug 2021 17:12:18 +0000 (00:12 +0700)] 
remove old link to header selinux/flask.h and selinux/av_permissions.h and depend (#12)

* 1. remove link to header selinux/flask.h and selinux/av_permissions.h
2. simple move from constant's SECCLASS_FILE and FILE__ENTRYPOINT to functions string_to_security_class("file") and string_to_av_perm(tclass, "entrypoint")
3. NEED CHECK CORRECT RETURN AFTER FAILED RETURN FROM FUNCTION string_to_security_class ADN string_to_av_perm !
Link to info from libselinux
https://github.com/SELinuxProject/selinux/commit/76913d8adb61b5#diff-046564229793ada24798dac3d2e479f07651ac9020d43938f3aa1fa9c9c24c9e

* read_conf() selinux: renamed vars and added error return

Co-authored-by: Thibault Godouet <yo8192@users.noreply.github.com>
4 years agoAdd SunOS case to sysVinitLauncher (#11)
David Stes [Tue, 4 May 2021 21:35:10 +0000 (23:35 +0200)] 
Add SunOS case to sysVinitLauncher (#11)

4 years agoMerge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Fri, 16 Oct 2020 21:04:05 +0000 (22:04 +0100)] 
Merge branch 'master' of github.com:yo8192/fcron

4 years agosystemd: run systemctl daemon-reload to load unit files
Thibault Godouet [Fri, 16 Oct 2020 20:58:40 +0000 (21:58 +0100)] 
systemd: run systemctl daemon-reload to load unit files

4 years agosystemd prefers programs to run in the foreground
Thibault Godouet [Fri, 16 Oct 2020 20:55:16 +0000 (21:55 +0100)] 
systemd prefers programs to run in the foreground

4 years agoadded missing script/fcron.init.systemd.reboot.in
Thibault Godouet [Fri, 16 Oct 2020 20:42:56 +0000 (21:42 +0100)] 
added missing script/fcron.init.systemd.reboot.in

5 years agoAdd missing </listitem> (#5)
David Stes [Sat, 30 May 2020 10:02:39 +0000 (12:02 +0200)] 
Add missing </listitem> (#5)

5 years agobuild: install programs as owner rw (#3)
Eli Schwartz [Sun, 19 Apr 2020 08:36:22 +0000 (04:36 -0400)] 
build: install programs as owner rw (#3)

Principle of least privilege suggests that for security-relevant
programs, no permissions other than those strictly necessary should be
applied. Hence the historic permissions for fcron were "executable, and
that's it". However, this causes problems for some legitimate use cases,
such as analysis of soname dependencies via readelf, use of strip, etc.

Slightly relax the install permissions to grant the owner, at least, rw
permissions. The owner can already trivially obtain these permissions at
will using chown, this merely saves them the bother.

Fixes #2

5 years agofixed various invalid XML issues
Thibault Godouet [Sat, 1 Feb 2020 14:30:13 +0000 (14:30 +0000)] 
fixed various invalid XML issues

7 years agofixed @reboot on systemd
Thibault Godouet [Sat, 30 Jun 2018 21:37:17 +0000 (22:37 +0100)] 
fixed @reboot on systemd

7 years agotemplate pidfile and config instead of static value in sysVinit-launcher.in
Thibault Godouet [Sat, 30 Jun 2018 21:35:05 +0000 (22:35 +0100)] 
template pidfile and config instead of static value in sysVinit-launcher.in

8 years agouse gender neutral 'their' in doc
Thibault Godouet [Mon, 29 May 2017 12:53:39 +0000 (13:53 +0100)] 
use gender neutral 'their' in doc

8 years agouse strip command from configure (thanks Luca Tavanti)
Thibault Godouet [Sat, 11 Feb 2017 10:20:17 +0000 (10:20 +0000)] 
use strip command from configure (thanks Luca Tavanti)

8 years agofixed bug preventing audit from being disabled -- thanks Thomas Deutschmann
Thibault Godouet [Sat, 19 Nov 2016 21:06:12 +0000 (21:06 +0000)] 
fixed bug preventing audit from being disabled -- thanks Thomas Deutschmann

9 years agomoved adhoc test away from main source code (not usable as is) ver3_3_0
Thibault Godouet [Sun, 14 Aug 2016 09:51:00 +0000 (10:51 +0100)] 
moved adhoc test away from main source code (not usable as is)

9 years agosystemd init: added LimitCORE
Thibault Godouet [Sun, 14 Aug 2016 09:09:37 +0000 (10:09 +0100)] 
systemd init: added LimitCORE

9 years agoadded is_loop_in_queue() for debug purposes
Thibault Godouet [Sun, 14 Aug 2016 08:58:56 +0000 (09:58 +0100)] 
added is_loop_in_queue() for debug purposes

9 years agoupdated changelog: systemd was retro-ported to 3.2.1
Thibault Godouet [Sun, 14 Aug 2016 08:57:35 +0000 (09:57 +0100)] 
updated changelog: systemd was retro-ported to 3.2.1

9 years agocomment improvements
Thibault Godouet [Sat, 30 Jul 2016 16:17:59 +0000 (17:17 +0100)] 
comment improvements

9 years agouse job_queue_remove()
Thibault Godouet [Sat, 30 Jul 2016 16:17:26 +0000 (17:17 +0100)] 
use job_queue_remove()

9 years agomark as dev release
Thibault Godouet [Sun, 26 Jun 2016 17:41:34 +0000 (18:41 +0100)] 
mark as dev release

9 years agoMerge branch 'suspend'
Thibault Godouet [Sun, 26 Jun 2016 17:39:33 +0000 (18:39 +0100)] 
Merge branch 'suspend'

9 years agoboot-install now supports systemd (and refactored while I was at it)
Thibault Godouet [Sun, 12 Jun 2016 21:26:53 +0000 (22:26 +0100)] 
boot-install now supports systemd (and refactored while I was at it)

9 years agoupdated copyright years to 2000-2016
Thibault Godouet [Sun, 26 Jun 2016 15:13:34 +0000 (16:13 +0100)] 
updated copyright years to 2000-2016

9 years agoadded runatresume / @resume
Thibault Godouet [Sun, 26 Jun 2016 14:56:00 +0000 (15:56 +0100)] 
added runatresume / @resume

9 years agoboot-install now supports systemd (and refactored while I was at it)
Thibault Godouet [Sun, 12 Jun 2016 21:26:53 +0000 (22:26 +0100)] 
boot-install now supports systemd (and refactored while I was at it)

9 years agoOn Linux, use specific system APIs to detect suspend/resume and measure suspend duration
Thibault Godouet [Sun, 12 Jun 2016 20:28:28 +0000 (21:28 +0100)] 
On Linux, use specific system APIs to detect suspend/resume and measure suspend duration

9 years agorefactored suspend handling code into suspend.[ch]
Thibault Godouet [Sun, 12 Jun 2016 10:25:59 +0000 (11:25 +0100)] 
refactored suspend handling code into suspend.[ch]
Also applied code style.

9 years agorefactored socket.[ch] into select.[ch] and fcrondyn_srv.[ch]
Thibault Godouet [Sun, 12 Jun 2016 09:32:03 +0000 (10:32 +0100)] 
refactored socket.[ch] into select.[ch] and fcrondyn_srv.[ch]
This is to prepare for getting notifed of time changes via timerfd_create() and select ()

9 years agoMerge branch 'master' into suspend
Thibault Godouet [Thu, 9 Jun 2016 14:59:20 +0000 (15:59 +0100)] 
Merge branch 'master' into suspend

9 years agoFixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or...
Thibault Godouet [Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)] 
Fixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or it won't work anyway)
This was due to a race condition between when time_to_sleep is run and when we compute how long to sleep for, which could happen in the following second: if that happened we end up sleeping for 1s instead of not sleeping at all.  The fix was to replace time_to_sleep() by next_wake_time().

9 years agogrammar error in doc
Thibault Godouet [Tue, 7 Jun 2016 19:56:08 +0000 (20:56 +0100)] 
grammar error in doc

9 years agoinstall-restart: use service (works with systemd) instead of /etc/init.d/fcron
Thibault Godouet [Tue, 7 Jun 2016 19:55:19 +0000 (20:55 +0100)] 
install-restart: use service (works with systemd) instead of /etc/init.d/fcron

9 years agoforce background for systemd (e.g. if debug mode enabled)
Thibault Godouet [Sun, 5 Jun 2016 17:47:42 +0000 (18:47 +0100)] 
force background for systemd (e.g. if debug mode enabled)