| 総合手引 | セクション 5 | English | オプション |
#include <sys/param.h>
コアファイルの最大サイズは setrlimit(2) により制限されます。 制限よりもサイズの大きなファイルは生成されません。
コアファイル名は sysctl(8) 変数 kern.corefile にて制御されます。 この変数の内容がコアイメージを格納するファイルの名前を示します。 このファイル名は絶対パスでも相対パスでもかまいません (後者の場合、コアイメージを生成するプログラムの現在のディレクトリ から解決されます)。 このファイル名テンプレート中にあるシーケンス amp;%N はいずれもプロセス名で置き換えられ、 amp;%P はプロセスの PID で置き換えられ、 amp;%U は UID で置き換えられます。 デフォルトの名前は amp;%N.core であり、伝統的な FreeBSD の振舞いとなります。
デフォルトでは、実ユーザまたは実効ユーザ、あるいは実グループ または実行グループが変更されているプロセスはコアファイルを 生成しません。 この動作は sysctl(8) で kern.sugid_coredump を 1 にすることによりコアダンプを生成するように変更できます。
sysctl kern.corefile="/var/coredumps/amp;%U/amp;%N.core"
| CORE (5) | January 9, 2002 |
| 総合手引 | セクション 5 | English | オプション |
このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.
| “ | "I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act." | ” |
| — Ken Pier, Xerox PARC | ||