05.03.2018 18:21, Aleksandr Sytar пишет:
ulimit -c ulimited (из под пользователя под которым падать программа будет)
# ulimit -c
0
# ulimit -c ulimited
bash: ulimit: ulimited: недопустимое число
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31542
max locked memory (kbytes, -l) 16384
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31542
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
#
В man вроде к опции -с значение ulimited вроде не применяют
вот смотрю ман -
man bash
....
ulimit [-HSabcdefiklmnpqrstuvxPT [limit]]
...
-c The maximum size of core files created
....
If limit is given, and the -a option is not used,
limit is the new value of the specified resource. If no option is
given, then -f is assumed. Values are in 1024-byte
increments, except for -t, which is in seconds; -p, which
is in units of 512-byte blocks; -P, -T, -b, -k, -n, and -u, which are
unscaled values; and, when in Posix mode,
-c and -f, which are in 512-byte increments. The return
status is 0 unless an invalid option or argument is supplied, or an
error occurs while setting a new limit.
версия bash -
$ apt show bash
Package: bash
Version: 4.4.18-1.1
Debian Unstable
$ cat /etc/debian_version
buster/sid