aboutsummaryrefslogtreecommitdiff
path: root/src/triplet.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 18:45:51 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 18:45:51 +0200
commitc9178a6fef0184baed0e8456bb6c6d4091b4997c (patch)
tree0c97d7aeb6235a469cd071d7d0b589f45a9d35f6 /src/triplet.c
parentb1472caae9a1b6905b6bbe42e69539b29febcf5c (diff)
downloadwydawca-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.c4
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;

Return to:

Send suggestions and report system problems to the System administrator.