aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix warningsMattias Andrée2015-12-2911-29/+35
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* ...Mattias Andrée2015-12-299-115/+71
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* receive messsage from daemonMattias Andrée2015-12-291-4/+27
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* clients test socket with shared lockMattias Andrée2015-12-291-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-291-5/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* start daemon and send messageMattias Andrée2015-12-294-10/+85
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* m simplificationMattias Andrée2015-12-291-8/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* typoMattias Andrée2015-12-293-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* styleMattias Andrée2015-12-291-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* a bit cleanerMattias Andrée2015-12-295-68/+43
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* whitespaceMattias Andrée2015-12-291-1/+0
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-294-0/+4
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* impelement satd-addMattias Andrée2015-12-293-8/+67
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* run_job_or_hook is not staticMattias Andrée2015-12-292-1/+10
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* mMattias Andrée2015-12-291-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* implement job running in remove_jobMattias Andrée2015-12-298-28/+103
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* implement send_string, remove_job (except for running the job), and get_jobsMattias Andrée2015-12-293-10/+160
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* the missing bitsMattias Andrée2015-12-295-1/+77
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* feature test macrosMattias Andrée2015-12-2910-10/+21
| | | | Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
* 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>