|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 415 (0x19f) Types: TextFile Names: »lockup.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦this⟧ »EUUGD11/euug-87hel/sec8/uutty/lockup.c«
#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; }