Page MenuHomeFreeBSD

Extend amount of possible coredumps.
ClosedPublic

Authored by oshogbo on Jul 3 2018, 10:09 PM.
Tags
None
Referenced Files
F170790570: D16118.id45191.diff
Sun, Sep 6, 3:49 PM
F170790562: D16118.id45217.diff
Sun, Sep 6, 3:49 PM
F170789613: D16118.id45191.diff
Sun, Sep 6, 3:40 PM
F170785636: D16118.id45191.diff
Sun, Sep 6, 3:09 PM
F170706352: D16118.id44830.diff
Sun, Sep 6, 3:18 AM
F170697912: D16118.id44830.diff
Sun, Sep 6, 2:12 AM
F170689231: D16118.id44830.diff
Sun, Sep 6, 1:12 AM
F170658252: D16118.id.diff
Sat, Sep 5, 8:48 PM
Subscribers

Details

Summary

The limitation of number of coredumps is removed.
The amount of digit in the name of corefile is assigned dynamically.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Please regenerate the diff with the context.

sys/kern/kern_sig.c
3217 ↗(On Diff #44830)

Where this define is used ?

3313 ↗(On Diff #44830)

Why coding snprintf() by hands ?

sys/kern/kern_sig.c
3331 ↗(On Diff #45191)

The blank line is not needed.

3444 ↗(On Diff #45191)

I still do not understand why do you do this manually.

How do you try to format the core file name ? printf() family has the format modifiers to align right ('-'), to fill the padding with zeroes ('0') and some other.

oshogbo added inline comments.
sys/kern/kern_sig.c
3331 ↗(On Diff #45191)

I would prefer to separate those twos.

3444 ↗(On Diff #45191)

Yeah, but I don't think wee need such sophisticated way.
printf with max number should just work fine.

This revision is now accepted and ready to land.Jul 12 2018, 4:29 PM
This revision was automatically updated to reflect the committed changes.