aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add foreach_linked_list_nodeMattias Andrée2014-05-061-22/+7
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add util.cMattias Andrée2014-05-061-42/+5
| | | | 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 strequals and startswith macros + add drop_privileges macro that drops the group before the userMattias Andrée2014-05-061-8/+7
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-05-061-2/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add buf_set/get_next macrosMattias Andrée2014-05-061-26/+17
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* kill all threadsMattias Andrée2014-05-061-20/+51
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* close files before running initrcMattias Andrée2014-05-061-15/+29
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* close untracked files if unmarshal from re-exec failsMattias Andrée2014-05-061-2/+24
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* use more macrosMattias Andrée2014-05-051-70/+57
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* use more macrosMattias Andrée2014-05-051-32/+22
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add xsnprintf macroMattias Andrée2014-05-051-9/+10
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* it would be a shame if we could not re-exec because we have filled the pipeMattias Andrée2014-05-051-45/+42
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* change doc in preparation for upcoming changeMattias Andrée2014-05-041-10/+10
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* restart slave threads after a re-execMattias Andrée2014-05-041-79/+102
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* unlist clients we failed to loadMattias Andrée2014-05-041-43/+61
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* populate address remap tableMattias Andrée2014-05-041-17/+78
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* read the marshalled data from the pipeMattias Andrée2014-05-041-1/+43
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* some work on unmarshallingMattias Andrée2014-05-031-23/+147
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + docMattias Andrée2014-05-031-4/+41
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mMattias Andrée2014-05-031-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* compile-time configurable api-fs pathMattias Andrée2014-05-031-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* separation of server state marshaling into a new methodMattias Andrée2014-05-031-98/+109
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* no need to marshal the socket's fd, it is already included in the cmdlineMattias Andrée2014-05-031-3/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* more re-exec stuffMattias Andrée2014-05-021-4/+79
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* some more work on re-execMattias Andrée2014-05-021-17/+133
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* some re-exec stuffMattias Andrée2014-05-021-7/+54
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* use sig_atomic_t for runningMattias Andrée2014-04-281-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* store the socket's stateMattias Andrée2014-04-281-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* handle closing of sockets by peerMattias Andrée2014-04-281-4/+13
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* read messages from clientMattias Andrée2014-04-281-2/+38
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add table optimised for file descriptorsMattias Andrée2014-04-261-9/+8
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m fixes + store client information in a hash table and in a linked listMattias Andrée2014-04-231-4/+78
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* m + accept incoming connectionsMattias Andrée2014-04-221-65/+189
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* run mdsinitrcMattias Andrée2014-04-211-3/+103
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* add missing includeMattias Andrée2014-04-211-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* master server also drops prilivegesMattias Andrée2014-04-211-0/+9
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* mds-server: parse command line argumentsMattias Andrée2014-04-211-0/+137
Signed-off-by: Mattias Andrée <maandree@operamail.com>