Re: Stunnel 5.44 server side 'exec = pppd' runs second child 'pppd' process after reconnection. Bug?

Florian Lohoff <[email protected]> Wed, 15 May 2019 19:24:20 +0200
Newsgroups gmane.network.stunnel.user
Organization rfc822 - pure communication
Message-ID <[email protected]>
On Wed, May 15, 2019 at 08:41:40AM +0000, Jochen Bern wrote:
> On 05/15/2019 12:22 AM, Florian Lohoff wrote:
> > On Tue, May 14, 2019 at 11:30:29AM -0700, Eric Eberhard wrote:
> >> That is not a bad idea.  I'd wrap it in a C program so I could check
> >> if the pppd is alive and not a zombie.
> > 
> > pppd is a pretty solid piece of software. Never seen it hang as a
> > zombie.
> 
> A zombie process is *terminated* and, basically, just a remaining entry
> in the kernel's process table. It's not hanging around because of
> something its own code did wrong, but because its parent process fails
> to "reap" its child (first and foremost, collect its exit code from the
> kernel). Killing the parent cleans up zombies because the zombies get
> re-parented to the init / systemd process (PID 1), which then does the
> reaping.

The point is - if pppd is a real zombie everything is fine. As then all
kernel resources have already been cleared away already - like interface
and routes. And that (from my understanding) is the real problem.
Starting a second pppd with the same static ip address for the peer.

And what i meant is that the pppd state machine is pretty solid and
clears away everything if the peer is detected dead for example
with the lcp echo request/reply.

Flo
-- 
Florian Lohoff                                                 [email protected]
        UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEdb9o7oebX2papQ/KkN1BIMsJ8i8FAlzcS0IACgkQkN1BIMsJ
8i/N+Q//YfSSJTbJlmcrUrhv+wcvKUC+s0juAJCDTiKhhjmk9Pf0oQ4vXH5x4yCR
yk17gj0wgkOYfXGtT3xPkLc2ljE4UFcDTCkRYbEOuqEv9cvoJV2qJ9O3iNhJAIMR
eK66QKZXn54ylEdjaugUX510LmOB7GfL0Z6XBxLHr+ekJ/M/kg4oYuzKkzDVFa25
FmY/cX+LgR0/CQkCFwEcg+nv15UIGW19Ubof7+BdtOAemUEmdZR7iqhoeeg4126b
Zvzuqb37TN/MKf3kng4+wh3p05wRZ6T7kKXoBI1Yqzn1aLvEiHvMw6x7ACwNH4A4
3SkbiWU4uWMG35HTRTAjvYg5b6Glx5VQkoUFx+PzntR2HSuF1X1cWk9X5Xhpqv6Q
YR12LgdlVcL6lSl0h2TViqPqUt2BZBx5sYJSkFAdliUkgR4Gwtoh5xjIhsCYyWW5
NTAKisI6JUZM9CWL8pqjxKfGqr2Z7tpBMDMdQK9U6wdyc8vdzFIx7lmBuhSlFHYa
rMPpyizXt88TUk5ryPAXROjzUyN9hQ+ImjQyEZLVbneH1U+pZxc4MWCcPL0jJHCx
MPcQAJkapqRq4LGuQTHcRuh18h70S1XzfN7/vXccyWjNl+AlmCmzmdz5HKScX56z
Yb2kjs0OY5Lphlyu3JRL+BY2G8bayvb8GlhZ5n2y8BAn4Gr+JrM=
=u8vu
-----END PGP SIGNATURE-----