aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* attributesMattias Andrée2015-08-251-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mds: styleMattias Andrée2015-08-241-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* the first argument on socket() should be PF_, not AF_ as often documented, although it does not really matter because PF_ to AF_ is a bijective ↵Mattias Andrée2015-08-221-1/+1
| | | | | | identity mapping (PF_UNSPEC was even added to make this true.) Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add and use xclose and xfclose, we do not want close or fclose to be ignored because a singal interrupts it.Mattias Andrée2015-08-211-5/+5
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* fix error where mode_t argument was not added when O_CREAT was used in openMattias Andrée2015-07-071-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m doc + iprint and iprintf macros + siginfo on mds, mds-vt and mds-respawnMattias Andrée2015-04-181-0/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* bump yearMattias Andrée2015-02-131-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* no more direct allocations, always use macros, unless using allocaMattias Andrée2014-12-101-4/+3
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* make fail_if friendlier to complex if-statementsMattias Andrée2014-12-091-19/+11
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* with a few exceptions, never return directly on failure, always goto fail by invoking fail_ifMattias Andrée2014-12-091-24/+24
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* rename pfail to failMattias Andrée2014-12-081-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + make sure we never lose errnoMattias Andrée2014-12-081-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* no more goto failMattias Andrée2014-12-081-6/+8
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* replace all goto pfail with fail_if, so that we can take whence it failedMattias Andrée2014-12-081-16/+9
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* kernel: remove umask until we exec into mds-serverMattias Andrée2014-09-201-3/+17
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* create and export process groupMattias Andrée2014-08-311-14/+20
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* if the system is awesome enough to have sigupdate defined, use it instead of sigusr1Mattias Andrée2014-08-241-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* setenv can failMattias Andrée2014-08-231-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* remove old debug print + mds kernel should ignore dangerMattias Andrée2014-08-201-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add fork_for_safety option + beginning of kernel-based keyboardMattias Andrée2014-08-111-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* kernel: put process name in quotes and print exit status and termination signal on crashed processesMattias Andrée2014-06-091-3/+8
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* test and fix mds-respawn + add missed staging: monotonic clock should be rawMattias Andrée2014-06-071-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* begin on base for serversMattias Andrée2014-05-191-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-05-181-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* style + reduce code complexityMattias Andrée2014-05-181-132/+128
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* reduce code complexityMattias Andrée2014-05-181-119/+93
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + add test clientMattias Andrée2014-05-141-3/+13
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add fix export of variableMattias Andrée2014-05-141-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m fixMattias Andrée2014-05-121-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-05-121-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + fix errors in mds.cMattias Andrée2014-05-121-23/+78
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add xsigactionMattias Andrée2014-05-061-2/+7
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* move config.h into libmdsserverMattias Andrée2014-05-061-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add monotone macroMattias Andrée2014-05-061-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add strequals and startswith macros + add drop_privileges macro that drops the group before the userMattias Andrée2014-05-061-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* use macros in mds.cMattias Andrée2014-05-061-45/+22
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-04-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* make it possible to select master serverMattias Andrée2014-04-211-10/+30
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m misc + create directory for temporary dataMattias Andrée2014-04-211-33/+132
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* unlink pid file on exitMattias Andrée2014-04-211-0/+5
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mds-server: parse command line argumentsMattias Andrée2014-04-211-7/+6
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + spawn and respawn master serverMattias Andrée2014-04-211-3/+122
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + listen on socketMattias Andrée2014-04-201-1/+10
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* create and bind socketMattias Andrée2014-04-201-0/+24
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-04-201-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + reuse display indicesMattias Andrée2014-04-201-1/+50
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* create pid file and set environmentMattias Andrée2014-04-201-10/+45
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* miscMattias Andrée2014-04-201-13/+75
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* not too much...Mattias Andrée2014-04-201-0/+89
Signed-off-by: Mattias Andrée <maandree@operamail.com>