Re: [ovs-dev] [PATCH ovn 1/2] Handle re-used pids in pidfile_is_running

2022-06-02 Thread Terry Wilson
On Wed, Jun 1, 2022 at 10:18 PM Ihar Hrachyshka wrote: > > On Wed, Jun 1, 2022 at 1:26 PM Terry Wilson wrote: > > > > Since pids can be re-used, it is necessary to check that the > > process that is running with a pid matches the one that we expect. > > > > This adds the ability to optionally

Re: [ovs-dev] [PATCH ovn 1/2] Handle re-used pids in pidfile_is_running

2022-06-01 Thread Ihar Hrachyshka
On Wed, Jun 1, 2022 at 1:26 PM Terry Wilson wrote: > > Since pids can be re-used, it is necessary to check that the > process that is running with a pid matches the one that we expect. > > This adds the ability to optionally pass a 'binary' argument to > pidfile_is_running, and if it is passed to

Re: [ovs-dev] [PATCH ovn 1/2] Handle re-used pids in pidfile_is_running

2022-06-01 Thread Terry Wilson
On Wed, Jun 1, 2022 at 1:30 PM 0-day Robot wrote: > checkpatch: > WARNING: Line is 124 characters long (recommended limit is 79) > #44 FILE: utilities/ovn-ctl:52: > test -e "$pidfile" && [ -s "$pidfile" ] && pid=`cat "$pidfile"` && > pid_exists "$pid" && pid_exe_matches "$pid" "$binary" > >

Re: [ovs-dev] [PATCH ovn 1/2] Handle re-used pids in pidfile_is_running

2022-06-01 Thread 0-day Robot
Bleep bloop. Greetings Terry Wilson, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 124 characters long (recommended limit is 79) #44 FILE: utilities/ovn-ctl:52:

[ovs-dev] [PATCH ovn 1/2] Handle re-used pids in pidfile_is_running

2022-06-01 Thread Terry Wilson
Since pids can be re-used, it is necessary to check that the process that is running with a pid matches the one that we expect. This adds the ability to optionally pass a 'binary' argument to pidfile_is_running, and if it is passed to match the binary against /proc/$pid/exe. Signed-off-by: Terry