aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-07-18 22:36:50 -0700
committerPaul Eggert2013-07-18 22:36:50 -0700
commitab9980cd3ba7e1cefe846610dccdc86923dcdb86 (patch)
treedb46d81037a960b07d1963cfd9166b8358b0c77d /src/ChangeLog
parent1396ac86dea5fccab800e4b25fdb5319381891eb (diff)
downloademacs-ab9980cd3ba7e1cefe846610dccdc86923dcdb86.tar.gz
emacs-ab9980cd3ba7e1cefe846610dccdc86923dcdb86.zip
* sysdep.c [GNU_LINUX]: Fix fd and memory leaks and similar issues.
(procfs_ttyname): Don't use uninitialized storage if emacs_fopen or fscanf fails. (system_process_attributes): Prefer plain char to unsigned char when either will do. Clean up properly if interrupted or if memory allocations fail. Don't assume sscanf succeeds. Remove no-longer-needed workaround to stop GCC from whining. Read command-line once, instead of multiple times. Check read status a bit more carefully.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 73fc64f37c5..b0c486ab8b2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
12013-07-19 Paul Eggert <eggert@cs.ucla.edu> 12013-07-19 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * sysdep.c [GNU_LINUX]: Fix fd and memory leaks and similar issues.
4 (procfs_ttyname): Don't use uninitialized storage if emacs_fopen
5 or fscanf fails.
6 (system_process_attributes): Prefer plain char to unsigned char
7 when either will do. Clean up properly if interrupted or if
8 memory allocations fail. Don't assume sscanf succeeds. Remove
9 no-longer-needed workaround to stop GCC from whining. Read
10 command-line once, instead of multiple times. Check read status a
11 bit more carefully.
12
3 Fix obscure porting bug with varargs functions. 13 Fix obscure porting bug with varargs functions.
4 The code assumed that int is treated like ptrdiff_t in a vararg 14 The code assumed that int is treated like ptrdiff_t in a vararg
5 function, which is not a portable assumption. There was a similar 15 function, which is not a portable assumption. There was a similar