| Summary: | [PATCH] wrong command in malloc(3) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | yonatan <yonatan> | ||||
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed The documentation is quite correct: /etc/malloc.conf is not supposed to be a file, merely a symbolic link. It is read using readlink(2) once, at the first call to malloc(3) or calloc(3) or a similar function; no file is opened, only the link contents are read. Thus, ln -s is correct. |
from malloc(3): --- To set a systemwide reduction of cache size, and to dump core whenever a problem occurs: ln -s 'A<' /etc/malloc.conf --- How-To-Repeat: read malloc(3)