aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Send error messagesMattias Andrée2016-07-141-56/+98
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Always pass non-null message IDMattias Andrée2016-07-141-17/+16
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add MAKE_MESSAGE macroMattias Andrée2016-07-141-115/+71
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2016-07-1315-47/+47
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement use of libclutMattias Andrée2016-07-132-2/+33
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Print warninging when attemping to remove non-existing filterMattias Andrée2016-07-131-1/+6
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Update usageMattias Andrée2016-07-131-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Handle outbound messagesMattias Andrée2016-07-133-49/+219
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add ring[.ch]Mattias Andrée2016-07-132-0/+326
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement filter updatingMattias Andrée2016-07-131-0/+13
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement Lifespan: removeMattias Andrée2016-07-131-0/+33
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Priority is not used when removing filterMattias Andrée2016-07-131-3/+7
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Only remove filter when a connection closes if the filter has until-death lifespanMattias Andrée2016-07-131-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Applying filtersMattias Andrée2016-07-135-4/+175
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Work on responsesMattias Andrée2016-07-131-21/+254
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Work on handling requestsMattias Andrée2016-07-138-55/+492
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement main loop and handling of inbound connections + remove server_message (though like this was an mds server and not a stand-alone server)Mattias Andrée2016-07-123-69/+94
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add -q and -qqMattias Andrée2016-07-121-4/+111
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add loop that waits on socketsMattias Andrée2016-07-123-0/+79
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Rename project: gammad => coopgammadMattias Andrée2016-07-1213-18/+18
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement re-execMattias Andrée2016-07-123-2/+106
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement state mergingMattias Andrée2016-07-123-6/+58
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement unmarshalling of process stateMattias Andrée2016-07-121-9/+138
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* whitespaceMattias Andrée2016-07-121-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement marshal of the processMattias Andrée2016-07-121-65/+196
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Conditionally store realpath(argv0) so we can reexecute even if argv0 is relativeMattias Andrée2016-07-111-0/+16
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Update usage()Mattias Andrée2016-07-111-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* docMattias Andrée2016-07-111-3/+15
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* m docMattias Andrée2016-07-111-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* m docMattias Andrée2016-07-111-5/+5
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Split out initialisation and deinitialisation from main()Mattias Andrée2016-07-111-105/+193
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add server.[ch]Mattias Andrée2016-07-113-0/+279
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* whitespace + Add message.[ch]Mattias Andrée2016-07-117-0/+799
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add signal handlersMattias Andrée2016-07-111-1/+48
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Do not require /procMattias Andrée2016-07-111-1/+10
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Close file descriptorsMattias Andrée2016-07-111-1/+11
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Create and listen to socket + do not use deprecated usleepMattias Andrée2016-07-113-4/+66
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Place in background unless -fMattias Andrée2016-07-113-12/+170
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Signal the spawner when the service is initialised enoughMattias Andrée2016-07-111-0/+13
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Use exit value 2 to indicate that the service is already runningMattias Andrée2016-07-111-4/+11
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Retry once if pid file is emptyMattias Andrée2016-07-111-1/+10
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement use of PID fileMattias Andrée2016-07-113-11/+286
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add get_pidfile_pathnameMattias Andrée2016-07-111-8/+33
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2016-07-111-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add .socket suffix to the socketMattias Andrée2016-07-111-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* whitespaceMattias Andrée2016-07-111-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Implement -pMattias Andrée2016-07-117-64/+97
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Sort outputs by nameMattias Andrée2016-07-113-12/+53
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* mMattias Andrée2016-07-101-4/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add command line parserMattias Andrée2016-07-103-7/+102
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>