summaryrefslogtreecommitdiff
path: root/sig.c (follow)
Commit message (Collapse)AuthorAge
* Switch back to variadic log macros.HEADpumasterAndre Noll2025-03-23
| | | | | | | | | | | | | 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.
* Dedoxify the source.Andre Noll2025-02-01
| | | | | | 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.
* Replace license boilerplate with single line SPDX comments.Andre Noll2017-11-19
| | | | | | | | | | | | | | | | | | | | 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.
* Improve signal handler.Andre Noll2015-02-25
| | | | | | | | | | | | | | The signal handler of dss has two issues: (a) it does not check the return value of the write(2) call, and (b) it does not restore errno on exit. The second issue might cause problems on systems where write(2) sets errno also on success. Those problems would be very hard to reproduce and debug. So it is probably a good idea to be conservative here. This commit fixes (a) by printing an error message and calling exit(3) if the write to the signal pipe failed or resulted in a short write. As for (b), we now save a copy of errno before the write(2) call, and restore the old value on success.
* Change email address and URLs.Andre Noll2014-08-19
| | | | | | | | 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.
* Merge branch 't/rename_system_files'Andre Noll2012-09-16
| | | | | | | | | | | | 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.
* Rename source files which also exist as system headers.Andre Noll2012-08-15
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.