Re: [systemd-devel] journal handling of process title changes

2014-03-24 Thread Lennart Poettering
On Mon, 24.03.14 19:01, Patrick Donnelly ([email protected]) wrote: > > On Mon, Mar 24, 2014 at 12:30 PM, Lennart Poettering > wrote: > > On Sun, 23.03.14 21:46, Patrick Donnelly ([email protected]) wrote: > > > >> My problem is not related to race conditions. The issue is that > >> /proc/

Re: [systemd-devel] journal handling of process title changes

2014-03-24 Thread Patrick Donnelly
On Mon, Mar 24, 2014 at 12:30 PM, Lennart Poettering wrote: > On Sun, 23.03.14 21:46, Patrick Donnelly ([email protected]) wrote: > >> My problem is not related to race conditions. The issue is that >> /proc/pid/cmdline is shown instead of /proc/pid/comm for each journal >> entry. That is: >> >

Re: [systemd-devel] journal handling of process title changes

2014-03-24 Thread Lennart Poettering
On Sun, 23.03.14 21:46, Patrick Donnelly ([email protected]) wrote: > My problem is not related to race conditions. The issue is that > /proc/pid/cmdline is shown instead of /proc/pid/comm for each journal > entry. That is: > > $ journalctl --boot > [...] > Mar 23 21:39:01 host a.out[10697]: h

Re: [systemd-devel] journal handling of process title changes

2014-03-23 Thread Patrick Donnelly
[adding message to list, sorry Lennart...] On Sun, Mar 23, 2014 at 9:25 PM, Lennart Poettering wrote: > On Sun, 23.03.14 00:32, Patrick Donnelly ([email protected]) wrote: > >> It seems the journal is reading from /proc/pid/cmdline (argv[0]) for >> each entry. So when reading using journalctl,

Re: [systemd-devel] journal handling of process title changes

2014-03-23 Thread Lennart Poettering
On Sun, 23.03.14 00:32, Patrick Donnelly ([email protected]) wrote: > It seems the journal is reading from /proc/pid/cmdline (argv[0]) for > each entry. So when reading using journalctl, we don't see process > title changes properly. See the below example: We are reading both /proc/$PID/comm a

[systemd-devel] journal handling of process title changes

2014-03-22 Thread Patrick Donnelly
It seems the journal is reading from /proc/pid/cmdline (argv[0]) for each entry. So when reading using journalctl, we don't see process title changes properly. See the below example: #include #include int main (int argc, char *argv[]) { printf("%d\n", prctl(PR_SET_NAME, "foo", 0, 0, 0));