diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-30 14:37:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-30 14:37:49 +0000 |
commit | 19730f2f20d3244c684ba0cfeffea25df8b5fe78 (patch) | |
tree | 20a196f00f9a8a179f56131cb3eb54a212e8a909 /nuttx | |
parent | b1d0755836c111cd34ae60a86e4af069758e0f92 (diff) | |
download | px4-nuttx-19730f2f20d3244c684ba0cfeffea25df8b5fe78.tar.gz px4-nuttx-19730f2f20d3244c684ba0cfeffea25df8b5fe78.tar.bz2 px4-nuttx-19730f2f20d3244c684ba0cfeffea25df8b5fe78.zip |
Fix environment sharing bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@854 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/ChangeLog | 4 | ||||
-rw-r--r-- | nuttx/Documentation/NuttX.html | 6 | ||||
-rw-r--r-- | nuttx/sched/env_share.c | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index aa8e91895..56437ece8 100644 --- a/nuttx/ChangeLog +++ b/nuttx/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/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index 05e587ae3..e81c39086 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -8,7 +8,7 @@ <tr align="center" bgcolor="#e4e4e4"> <td> <h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1> - <p>Last Updated: August 29, 2008</p> + <p>Last Updated: August 30, 2008</p> </td> </tr> </table> @@ -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/nuttx/sched/env_share.c b/nuttx/sched/env_share.c index a1c740aa7..20920a8d3 100644 --- a/nuttx/sched/env_share.c +++ b/nuttx/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 */ |