DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦19b559fdc⟧ TextFile

    Length: 415 (0x19f)
    Types: TextFile
    Names: »lockup.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/uutty/lockup.c« 

TextFile

#include "uutty.h"
/* 
** The lockfile exists; hang until it disappears.
*/
lockup()
{	int n;

	n = 0;
	do {
		if ((n==0 && debug>=2) || debug>=3)
			P("%s Lockfile \"%s\" exists.",getime(),lockfile);
		if (lsleep > 0)
			sleep(lsleep);
		++n;
		}
			while (stat(lockfile,&status) >= 0);
	D3("locked: Lockfile \"%s\" freed.",lockfile);
	if (debug>=2)
		P("%s Lockfile \"%s\" gone.",getime(),lockfile);
	return n;
}