projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01d37b0
)
ipc: Close proc fd.
author
Andre Noll
<maan@systemlinux.org>
Sat, 20 Jul 2013 19:08:15 +0000
(21:08 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 4 Sep 2013 22:23:13 +0000
(22:23 +0000)
We read shmmax only once, so there is no point in keeping this
file descriptor open forever.
ipc.c
patch
|
blob
|
history
diff --git
a/ipc.c
b/ipc.c
index
1ec53c3
..
89bbe53
100644
(file)
--- a/
ipc.c
+++ b/
ipc.c
@@
-209,6
+209,7
@@
size_t shm_get_shmmax(void)
buf[ret] = '\0';
shmmax = strtoul(buf, NULL, 10);
}
+ close(fd);
}
}
#elif defined SYSCTL_SHMMAX_VARIABLE