<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dss/daemon.c, branch master</title>
<subtitle>DSS - dyadic snapshot scheduler</subtitle>
<id>https://git.tuebingen.mpg.de/cgit/dss/atom?h=master</id>
<link rel='self' href='https://git.tuebingen.mpg.de/cgit/dss/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/'/>
<updated>2025-03-23T18:13:50Z</updated>
<entry>
<title>Switch back to variadic log macros.</title>
<updated>2025-03-23T18:13:50Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2024-10-23T16:45:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=07b73ad8272084b706d18ee2286bf25711dbaabb'/>
<id>urn:sha1:07b73ad8272084b706d18ee2286bf25711dbaabb</id>
<content type='text'>
This essentially reverts commit 66cdd5bc99a5 which aimed to make the
dss log facility C89 conform. While this was a worthwhile goal in
2012, it has little value today, since in 2025 we can safely assume
a C99 compliant compiler.

The patch was created with

	git revert -Xours 66cdd5bc

followed by manual tweaks to make it compile again.
</content>
</entry>
<entry>
<title>Dedoxify the source.</title>
<updated>2025-02-01T19:11:59Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2024-10-22T18:01:10Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=5770e00c6e59528762be20610af6d8bd24d6872f'/>
<id>urn:sha1:5770e00c6e59528762be20610af6d8bd24d6872f</id>
<content type='text'>
The doxygen comments actually make the source code harder to read,
because they tend to document the obvious. Besides, they are not used
uniformly accross the code base anyway.
</content>
</entry>
<entry>
<title>daemon_init(): Do not set umask to zero.</title>
<updated>2019-10-25T11:34:49Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2019-10-25T11:34:49Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=0f8170444cf9e2bcc42b64bdcae3a38b7ac55e66'/>
<id>urn:sha1:0f8170444cf9e2bcc42b64bdcae3a38b7ac55e66</id>
<content type='text'>
We don't need this because we actively want rsync to respect the file
creation mask. This does not matter in the common case of a single
source directory because the permission bits will be copied from the
source directory anyway. However, for multiple source directories it
does matter because with umask(0) the top level snapshot directory
is created with mode 777.
</content>
</entry>
<entry>
<title>Replace license boilerplate with single line SPDX comments.</title>
<updated>2017-11-19T01:53:25Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2017-11-06T00:12:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=1f5ecfacc341f893d73caa0a613d553af33a6cc9'/>
<id>urn:sha1:1f5ecfacc341f893d73caa0a613d553af33a6cc9</id>
<content type='text'>
This gets rid of existing copyright templates in favor of just the
one-liner SPDX (Software Package Data Exchange) notice. All files are
licensed under the GPL-2.0, so the same tag is added to each file. No
copyright is changed by this commit.

Several files (mostly the very short ones) did not contain a license
text so far. By default all files without license information are
under the default license of this package, which is GPL version 2.
This commit adds the missing SPDX line so that now all files except
dss.css, index.html.in, INSTALL, NEWS and README have it.

We also remove author and copyright year, since the author is the same
everywhere, and the year hasn't been updated any more since at least
six years. Accurate information is available from the git log.

The COPYING file can also be removed because the license text at
https://spdx.org/licenses/GPL-2.0.html is immutable.
</content>
</entry>
<entry>
<title>run: Fix exit status in case another dss process is running.</title>
<updated>2017-07-13T20:54:03Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2016-06-16T21:21:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=6c63f45a9068107cfd80aa181134574dd9373c0b'/>
<id>urn:sha1:6c63f45a9068107cfd80aa181134574dd9373c0b</id>
<content type='text'>
In daemon mode, we must acquire the semaphore lock in the child process
because the child does not inherit semaphore adjustments. Currently
the parent exits successfully after the fork, so the command appears
to succeed even if the child dies immediately because it was unable
to acquire the lock because another dss process is holding the lock.

This commit introduces a mechanism which enables the parent to tell
whether the child completed its setup successfully. We create a
pipe prior to calling fork(2), and let the child write to one end
of the pipe after setup is complete and just before it enters the
main select loop. The parent reads from the other end of the pipe
and exits once the read(2) call returns. If the child dies early,
read(2) returns zero, indicating failure.
</content>
</entry>
<entry>
<title>daemon: Do not change to /.</title>
<updated>2016-08-21T19:13:25Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2016-06-14T08:40:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=7da9a331fbbfb10a35fd9d014c47edbad13ffed7'/>
<id>urn:sha1:7da9a331fbbfb10a35fd9d014c47edbad13ffed7</id>
<content type='text'>
This is pointless because we immediately cd back into the destination
dir anyway.
</content>
</entry>
<entry>
<title>daemon.c: Open /dev/null read-write.</title>
<updated>2015-04-14T09:11:22Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2015-03-30T16:20:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=5b5d7b59a34579ba86ce620ee527ffad087c9b60'/>
<id>urn:sha1:5b5d7b59a34579ba86ce620ee527ffad087c9b60</id>
<content type='text'>
While daemonizing we redirect stdin, stdout and stderr to /dev/null,
which is considered good practice. We should, however, open these
two devices in read-write mode rather than read-only, since not being
able to write to stdout/stderr might confuse rsync and the hooks.
</content>
</entry>
<entry>
<title>Change email address and URLs.</title>
<updated>2014-08-19T12:18:38Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2014-08-16T10:00:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=8daf8f3836e745ba07f1aa01252279588574c95a'/>
<id>urn:sha1:8daf8f3836e745ba07f1aa01252279588574c95a</id>
<content type='text'>
The web and email service of systemlinux.org was down for two
weeks. Meanwhile the dss web pages found a new home at the MPI campus
of Tübingen.

This commit changes the email addresses and the home page URL.
</content>
</entry>
<entry>
<title>Merge branch 't/rename_system_files'</title>
<updated>2012-09-16T11:34:07Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2012-09-16T11:34:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=6c76799c7334a12926dc1cf0c32670423cbc954f'/>
<id>urn:sha1:6c76799c7334a12926dc1cf0c32670423cbc954f</id>
<content type='text'>
Has been cooking for several weeks. The conflicts

	daemon.c
	exec.c
	file.c
	ipc.c
	sig.c

are trivial and can be resolved easily.
</content>
</entry>
<entry>
<title>Rename source files which also exist as system headers.</title>
<updated>2012-08-15T09:41:32Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2012-08-11T18:32:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tuebingen.mpg.de/cgit/dss/commit/?id=46cbddf465bd66ba1d5c4bcc780ae0d65abd7f73'/>
<id>urn:sha1:46cbddf465bd66ba1d5c4bcc780ae0d65abd7f73</id>
<content type='text'>
As pointed out by Daniel Richard G. some of the dss header files
are named the same as system header files.

This patch renames these headers as well as their corresponding .c
files. Specifically, error.h, fd.h, signal.h, string.h and time.h
become err.h, file.h, sig.h, str.h and tv.h.
</content>
</entry>
</feed>
