Set close-on-exec flag on the flock FD #5

Merged
merged 1 commit into from Nov 10, 2017

Conversation

Projects
None yet
2 participants
Member

axw commented Nov 10, 2017

Set the close-on-exec flag for the flock
FD so that subprocesses do not hold the
flock open.

mutex_test.go
@@ -328,6 +347,60 @@ func LockFromAnotherProc(c *gc.C, name string, kill chan struct{}, wait, unlock
return done
}
+// SleepFromAnotherProc will launch a process and cause it to sleep
+// for that it connects to to be closed, to prove that
@wallyworld

wallyworld Nov 10, 2017

Owner

fix english?

@axw

axw Nov 10, 2017

Member

i has fixed

Set close-on-exec flag on the flock FD
Set the close-on-exec flag for the flock
FD so that subprocesses do not hold the
flock open.
Member

axw commented Nov 10, 2017

$$merge$$

@axw axw merged commit 1fe2a4b into juju:master Nov 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment