Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 434800
Collapse All | Expand All

(-)openrc-0.11.8.orig/src/rc/runscript.c (-2 / +6 lines)
Lines 311-318 Link Here
311
	lock_fd = open(PREFIX_LOCK, O_WRONLY | O_CREAT, 0664);
311
	lock_fd = open(PREFIX_LOCK, O_WRONLY | O_CREAT, 0664);
312
312
313
	if (lock_fd != -1) {
313
	if (lock_fd != -1) {
314
		if (flock(lock_fd, LOCK_EX) != 0)
314
		while (flock(lock_fd, LOCK_EX) != 0) {
315
			eerror("flock() failed: %s", strerror(errno));
315
			if (errno != EINTR) {
316
				eerror("flock() failed: %s", strerror(errno));
317
				break;
318
			}
319
		}
316
	}
320
	}
317
#ifdef RC_DEBUG
321
#ifdef RC_DEBUG
318
	else
322
	else

Return to bug 434800