aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-03-30 11:29:57 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-03-30 11:29:57 +0000
commit8a92f14092aa538546d319620c341ac058b833a6 (patch)
treebb25ac0b1f2fa9130aa7ea8aad3b9953d31689f4 /winsup/cygwin
parenta918afd7033d33525ed4eb4c42ba974a8d766d65 (diff)
downloadnewlib-8a92f14092aa538546d319620c341ac058b833a6.zip
newlib-8a92f14092aa538546d319620c341ac058b833a6.tar.gz
newlib-8a92f14092aa538546d319620c341ac058b833a6.tar.bz2
* posix.sgml (std-notes): Change description of flock restrictions.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/posix.sgml9
-rw-r--r--winsup/cygwin/release/1.7.1214
3 files changed, 23 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1c632eb..84110b2 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2012-03-30 Corinna Vinschen <corinna@vinschen.de>
+ * posix.sgml (std-notes): Change description of flock restrictions.
+
+2012-03-30 Corinna Vinschen <corinna@vinschen.de>
+
* devices.h (DEV_TTY_MAJOR): Define, use throughout where appropriate.
(DEV_VIRTFS_MAJOR): Ditto.
* fhandler_dev.cc (fhandler_dev::readdir): Add comments. Tweak tests
diff --git a/winsup/cygwin/posix.sgml b/winsup/cygwin/posix.sgml
index 5bb27d7..5e5df46 100644
--- a/winsup/cygwin/posix.sgml
+++ b/winsup/cygwin/posix.sgml
@@ -1457,10 +1457,11 @@ CLOCK_REALTIME and CLOCK_MONOTONIC. <function>clock_setres</function>,
<function>clock_settime</function>, and <function>timer_create</function>
currently support only CLOCK_REALTIME.</para>
-<para>BSD file locks created via <function>flock</function> are not
-propagated to the parent process and sibling processes. The locks are
-only valid in the creating process and subsequently started child processes
-sharing the same file descriptor.</para>
+<para>BSD file locks created via <function>flock</function> are only
+propagated to the direct parent process, not to grand parents or sibling
+processes. The locks are only valid in the creating process, its parent,
+and subsequently started child processes sharing the same file descriptor.
+</para>
<para><function>fpclassify</function>, <function>isfinite</function>,
<function>isgreater</function>, <function>isgreaterequal</function>,
diff --git a/winsup/cygwin/release/1.7.12 b/winsup/cygwin/release/1.7.12
index f81cbf1..4072ad3 100644
--- a/winsup/cygwin/release/1.7.12
+++ b/winsup/cygwin/release/1.7.12
@@ -5,3 +5,17 @@ What's new:
existing POSIX devices.
- Add virtual /proc/PID/mountinfo file.
+
+- flock now additionaly supports the following scenario, which requires
+ to propagate locks to the parent process:
+
+ (
+ flock -n 9 || exit 1
+ # ... commands executed under lock ...
+ } 9>/var/lock/mylockfile
+
+ Only propagation to the direct parent process is supported so far,
+ not to grand parents or sibling processes.
+
+- Add a "detect_bloda" setting for the CYGWIN environment variable to help
+ finding potential BLODAs.