public inbox for
help / color / mirror / Atom feed
* gnats/gnats pr-edit.c internal.c index.c edit. ...
@ 2001-11-09 14:22 pdm
  0 siblings, 0 replies; only message in thread
From: pdm @ 2001-11-09 14:22 UTC (permalink / raw)
  To: gnats-cvs

CVSROOT:	/cvs/gnats
Module name:	gnats
Changes by:	2001-11-09 14:22:10

Modified files:
	gnats          : pr-edit.c internal.c index.c edit.c 

Log message:
	* pr-edit.c (main): Don't test a "boolean" int value by comparing
	it with 1.
	* index.c (getFirstPR): Always checkPRChain; this decreases the
	chances of writing out stale index data.
	(writeIndex): Check to make sure that index hasn't changed since
	last read, fail with CODE_INVALID_INDEX if it has.  Also generate
	email to admin about the problem. Update indexDesc->mtime after
	writing out new index.
	* cmds.c (GNATS_appnOrRepl): Lock database before editing.
	* pr-edit.c (main): Lock database before --append or --replace in
	non-network mode.
	* edit.c (lock_pr): Quash a race bug in PR locking.  Use basically
	the same code as in lock_gnats.  Report lock time if PR is locked.
	* internal.c (lock_gnats): Changed from using creat(path, 0) to
	atomic open() to eliminate a race in database lock creation.
	* internal.c (punt): Complain to stderr if database is null.
	queue-pr sometimes calls punt() before defining database, and this
	way cron will report the error.
	* (lock): Report pid when locking PR.
	(submit): If there are errors during submission, prompt the user
	to abort or retry.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-09 14:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-09 14:22 gnats/gnats pr-edit.c internal.c index.c edit. pdm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).