diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-24 18:45:51 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-24 18:45:51 +0200 |
commit | c9178a6fef0184baed0e8456bb6c6d4091b4997c (patch) | |
tree | 0c97d7aeb6235a469cd071d7d0b589f45a9d35f6 /src/triplet.c | |
parent | b1472caae9a1b6905b6bbe42e69539b29febcf5c (diff) | |
download | wydawca-c9178a6fef0184baed0e8456bb6c6d4091b4997c.tar.gz wydawca-c9178a6fef0184baed0e8456bb6c6d4091b4997c.tar.bz2 |
Implement locking
* src/lock.c: New file.
* gnulib.modules (sysexits, xgethostname): New modules.
* src/lock.c: New file.
* src/Makefile.am: Add lock.c
* src/config.c: Locking keywords.
* src/job.c: Requeue jobs if locking fails.
* src/wydawca.c (wydawca_uid): Rename to wydawca_set_uid
(main): Implement restart.
* src/process.c (scan_spool, scan_all_spools): Use locking, if configured.
* src/directive.c, src/diskio.c, src/triplet.c: Rename
wydawca_uid
* src/exec.c, src/getopt.m4, src/net.c,
src/pidfile.c: Use standard error codes from sysexits.h
* tests/etc/wydawca.rcin: Disable locking.
Diffstat (limited to 'src/triplet.c')
-rw-r--r-- | src/triplet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/triplet.c b/src/triplet.c index 717fd2a..285c831 100644 --- a/src/triplet.c +++ b/src/triplet.c @@ -199,10 +199,10 @@ triplet_processor (void *data, void *proc_data) case triplet_complete: if (debug_level) logmsg (LOG_DEBUG, _("processing triplet `%s'"), trp->name); - if (wydawca_uid (TRIPLET_UID (trp)) == 0) + if (wydawca_set_uid (TRIPLET_UID (trp)) == 0) { process_directives (trp, spool); - wydawca_uid (0); + wydawca_set_uid (0); } return true; |