Bug 8626

Summary: logger: add support for the -i option
Product: Busybox Reporter: Christopher Maynard <christopher.maynard>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs, janovji3
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:
Attachments: Short patch for bug #8626 add option -i to logger
Patch for bug #8626 add option -i to logger
logger -i patch

Description Christopher Maynard 2016-01-21 21:39:18 UTC
dhcpcd's dhcpcd-run-hooks.in:syslog()[1] expects logger to support the '-i' option.  It would be nice if busybox's logger supported it so dhcpcd's messages could be successfully logged.

From the logger man page[2]:

    -i     Log the PID of the logger process with each line.

[1]: http://roy.marples.name/projects/dhcpcd/artifact/388aaf84a4b9d16b
[2]: http://man7.org/linux/man-pages/man1/logger.1.html
Comment 1 janovji3 2016-03-19 16:48:47 UTC
Created attachment 6391 [details]
Short patch for bug #8626 add option -i to logger

Short patch adding -i option to logger.
Tested version 1.25.0.git .
Comment 2 janovji3 2016-03-19 16:53:09 UTC
Created attachment 6396 [details]
Patch for bug #8626 add option -i to logger

Add option -i to logger and can be enabled/disabled in menuconfig.
Modifications are inspired by syslogd.c code.
(If something wrong then sorry I use bugzilla first time :-) .)
Comment 3 janovji3 2016-04-06 16:21:28 UTC
Created attachment 6421 [details]
logger -i patch