Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137704682
D20970.id59808.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20970.id59808.diff
View Options
Index: share/man/man5/core.5
===================================================================
--- share/man/man5/core.5
+++ share/man/man5/core.5
@@ -84,6 +84,8 @@
processes PID.
.It Em \&%U
process UID.
+.It Em \&%S
+signal during core.
.El
.Pp
The name defaults to
Index: sys/kern/kern_sig.c
===================================================================
--- sys/kern/kern_sig.c
+++ sys/kern/kern_sig.c
@@ -3433,7 +3433,7 @@
*/
static int
corefile_open(const char *comm, uid_t uid, pid_t pid, struct thread *td,
- int compress, struct vnode **vpp, char **namep)
+ int compress, int signum, struct vnode **vpp, char **namep)
{
struct sbuf sb;
struct nameidata nd;
@@ -3485,6 +3485,9 @@
case 'U': /* user id */
sbuf_printf(&sb, "%u", uid);
break;
+ case 'S': /* signal number */
+ sbuf_printf(&sb, "%i", signum);
+ break;
default:
log(LOG_ERR,
"Unknown format character %c in "
@@ -3599,7 +3602,7 @@
PROC_UNLOCK(p);
error = corefile_open(p->p_comm, cred->cr_uid, p->p_pid, td,
- compress_user_cores, &vp, &name);
+ compress_user_cores, p->p_sig, &vp, &name);
if (error != 0)
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 26, 12:58 AM (10 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26194131
Default Alt Text
D20970.id59808.diff (1 KB)
Attached To
Mode
D20970: Adds signal number format to kern.corefile
Attached
Detach File
Event Timeline
Log In to Comment