From af1a31d5c66d3bd427a528fe0daec58bfa8e7a15 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 30 Aug 2008 14:37:49 +0000 Subject: [PATCH] Fix environment sharing bug git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@854 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 4 +++- Documentation/NuttX.html | 6 ++++-- sched/env_share.c | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa8e91895c..56437ece84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -427,6 +427,8 @@ * NSH: Add mem command to display heap usage * Added telnet NSH configuration for Neuros OSD. * Basic integration of concurrent telnet/serial NSH functional on Neuros - OSD (some bugs on background commands). + OSD. + * Fixed a critical bug that effects the way that environement variables are + shared amongst pthreads. diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 05e587ae32..e81c390864 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: August 29, 2008

+

Last Updated: August 30, 2008

@@ -1061,7 +1061,9 @@ nuttx-0.3.13 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * NSH: Add mem command to display heap usage * Added telnet NSH configuration for Neuros OSD. * Basic integration of concurrent telnet/serial NSH functional on Neuros - OSD (some bugs on background commands). + OSD. + * Fixed a critical bug that effects the way that environement variables are + shared amongst pthreads. pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/sched/env_share.c b/sched/env_share.c index a1c740aa78..20920a8d34 100644 --- a/sched/env_share.c +++ b/sched/env_share.c @@ -98,7 +98,7 @@ int env_share(FAR _TCB *ptcb) { /* Yes.. increment the reference count on the environment */ - envp++; + envp->ev_crefs++; } /* Then share the environment */