aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* m fixMattias Andrée2015-12-291-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-291-2/+0
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* more character that are not sh safeMattias Andrée2015-12-291-10/+8
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix errorsMattias Andrée2015-12-2911-40/+51
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* reopen state file, we will use flock on it, so all processes need their own open file descriptor for itMattias Andrée2015-12-296-3/+47
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* how silly, I did not remove the line when I adapted it (whence I copied it) to leave the current user the ownerMattias Andrée2015-12-281-1/+0
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* pmMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* typoMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-1/+5
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* partially implement satd-list, satd-rm, and satd-runMattias Andrée2015-12-286-30/+335
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-287-3/+5
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m + receive messagesMattias Andrée2015-12-2811-36/+452
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* ...Mattias Andrée2015-12-281-2/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* what was I thingingMattias Andrée2015-12-282-21/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* typoMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* reap children in sighandler to avoid getting stuck at EAGAINMattias Andrée2015-12-281-2/+10
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m + reexec on sighup + reap childrenMattias Andrée2015-12-281-7/+42
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m + all of this is probably unnecessary for most usersMattias Andrée2015-12-281-0/+3
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-2/+3
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* just in caseMattias Andrée2015-12-281-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* support recovering from a crashMattias Andrée2015-12-282-0/+19
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* that is why I used MSG_PEEK initiallyMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* accept connections and for-exec to appropriate imageMattias Andrée2015-12-282-6/+68
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* close state file + unlink before closing to avoid race conditionMattias Andrée2015-12-282-2/+3
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* a file guideMattias Andrée2015-12-281-0/+19
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* typoMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* create state fileMattias Andrée2015-12-282-21/+74
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* use CLOCK_BOOTTIME rather than CLOCK_MONOTONICMattias Andrée2015-12-281-3/+3
| | | | | | | | This allows use to be suspend-aware and we do not have to deal with the processes may not have the same epoch on CLOCK_MONOTONIC. Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* ...Mattias Andrée2015-12-282-19/+46
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* satd: exec to an image without init textMattias Andrée2015-12-282-4/+53
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* we do not need to be able to pass the file descriptor via well defined fd:s now that we can keep the socket when called daemoniseMattias Andrée2015-12-281-22/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* update daemonise, and daemonise when fully initialisedMattias Andrée2015-12-283-11/+126
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* reorder actionsMattias Andrée2015-12-281-15/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* get hook-script pathnameMattias Andrée2015-12-281-1/+55
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* whitespaceMattias Andrée2015-12-281-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* the socket can be passed via stdinMattias Andrée2015-12-281-5/+34
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* unlink socket on flock failureMattias Andrée2015-12-281-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix errors + use flock on socketMattias Andrée2015-12-282-8/+37
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* listenMattias Andrée2015-12-281-0/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-281-8/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* fix errors and tidy upMattias Andrée2015-12-2810-235/+206
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* the socket shall be opened on fd 3 (you will see why later)Mattias Andrée2015-12-281-0/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* docMattias Andrée2015-12-281-0/+10
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* remove empty environment entiresMattias Andrée2015-12-261-0/+15
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>