Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142200198
D20970.id59812.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.id59812.diff
View Options
Index: head/share/man/man5/core.5
===================================================================
--- head/share/man/man5/core.5
+++ head/share/man/man5/core.5
@@ -82,6 +82,8 @@
process name.
.It Em \&%P
processes PID.
+.It Em \&%S
+signal during core.
.It Em \&%U
process UID.
.El
Index: head/sys/kern/kern_sig.c
===================================================================
--- head/sys/kern/kern_sig.c
+++ head/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;
@@ -3482,6 +3482,9 @@
case 'P': /* process id */
sbuf_printf(&sb, "%u", pid);
break;
+ case 'S': /* signal number */
+ sbuf_printf(&sb, "%i", signum);
+ break;
case 'U': /* user id */
sbuf_printf(&sb, "%u", uid);
break;
@@ -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
Sun, Jan 18, 3:48 AM (25 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27704018
Default Alt Text
D20970.id59812.diff (1 KB)
Attached To
Mode
D20970: Adds signal number format to kern.corefile
Attached
Detach File
Event Timeline
Log In to Comment