Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved pid unlink. Added Reasons for script. Added signals #299

Closed
wants to merge 1 commit into from
Closed

Moved pid unlink. Added Reasons for script. Added signals #299

wants to merge 1 commit into from

Conversation

marjohn56
Copy link

@marjohn56 marjohn56 commented Feb 8, 2017

pid unlink was called before all processes were complete. This could leave dhcp6c still running sending and waiting for release but any check for process by PID returned false, moved to just before exit(0); This is probably the reason for cases of multiple dhcp6c instances. The original method of killing dhcp6c using SIGTERM, SIGTERM, SIGKILL would fail as there was no pid by the time it got to SIGKILL.

Env var REASONS only returned NBI, now returns various reasons for script call, these can be:

REASON=INFO
REASON=REPLY
REASON=RENEW
REASON=RELEASE
REASON=REBIND
REASON=EXIT
REASON=OTHER

EXIT will be signalled when the client exits.
OTHER is a catchall and should never happen.

Signals SIGUSR1 and SIGUSR2 are added. These are used to force an exit ignoring the state of the no-release flag. SIGUSR1 forces a no-release exit. SGUSR2 forces a release exit. SIGUSER1 is very useful as
it kills dhcp6c quickly without sending and waiting for release on a WAN down event.

Logging info changes to text case and text; logging change to indicate PD or IA in info mode rather than debug.

This client will work without script updates being required.

pid unlink was called before all processes were complete. This could
leave dhcp6c still runing sending and waiting for release but any check
for process by PID returned false, moved to just before exit(0);

Env var REASONS only returned NBI, now returns various reasons for
script call, these can be:
REASON=INFO
REASON=REPLY
REASON=RENEW
REASON=RELEASE
REASON=REBIND
REASON=EXIT
REASON=OTHER

EXIT will be signalled when the client exits.
OTHER is a catchall and should never happen.

Signals SIGUSR1 and SIGUSR2 are added. These are used to force an exit
ignoring the state of the no-release flag. SIGUSR1 forces a no-release
exit.
SGUSR2 forces a release exit.

Logging info changes to case and text; logging change to indicate PD or
IA in info mode rather than debug.
@rbgarga
Copy link
Member

rbgarga commented Feb 9, 2017

I would like to hear from @hrs-allbsd about hrs-allbsd/wide-dhcpv6#5 before proceed with this change

@marjohn56
Copy link
Author

So would I, it's been there a week.

@bimmerdriver
Copy link

I took the liberty of contacting @hrs-allbsd. He will try to look at the PR and merge it on Friday.

@bimmerdriver
Copy link

Friday came and went and the PR has still not been merged. I sent another email to @hrs-allbsd, but I haven't heard back yet. Considering that the WIDE / KAME projects shut down in 2005, it's not surprising that there have been virtually no changes to WIDE-DHCPv6 (other than another recent fix for pfsense a few months ago) for 10 or 11 years. However, there have been many revisions to the RFCs that were in place in 2005 when WIDE-DHCPv6 was released, as well as new RFCs. WIDE-DHCPv6 is a dead project comprising one person (@hrs-allbsd) and it's clearly not his priority. On the other hand, KEA DHCP is being actively developed and will replace ISC DHCP. Maybe pfsense should move to KEA DHCP.

@marjohn56
Copy link
Author

marjohn56 commented Feb 26, 2017 via email

@bimmerdriver
Copy link

bimmerdriver commented Feb 26, 2017 via email

@rbgarga
Copy link
Member

rbgarga commented Mar 2, 2017

I've cherry-picked freebsd/freebsd-ports@3a3ac4a to RELENG_2_3 and devel, it will be available on next round of snapshots.

@rbgarga rbgarga closed this Mar 2, 2017
netgate-git-updates pushed a commit that referenced this pull request Jun 26, 2019
  [ Robert Edmonds ]
  * Release 1.3.2.

  * Use protobuf 3.7.1 in the Travis-CI environment (#368).

  * Fix test suite build failure on newer versions of protobuf (#369).

  [ Ilya Lipnitskiy ]
  * Fix proto3 repeated scalar field default packing behavior (#330, #377).

  [ Adam Cozzette ]
  * Fix out-of-bounds read in scan_length_prefixed_data() (#375, #376).

  [ Jurriaan Bremer ]
  * Fix -Wdeclaration-after-statement warning in parse_oneof_member() (#360).

  [ Hayri Ugur Koltuk ]
  * Fix SIGSEGV in protobuf_c_message_check() on messages with unpopulated
    oneof members (#358).

  [ Italo Guerrieri ]
  * Do not allow tag values of 0 in protobuf messages, as these are not
    allowed by proto2 or proto3 (#299).

The patch for version 1.3.1 is no longer required.

Sort Makefile statements to pacify portlint.

Reported by:	portscout
Sponsored by:	Farsight Security, Inc.
netgate-git-updates pushed a commit that referenced this pull request May 29, 2020
- Updates and documents a patch.

Changes since 2.1.1:

Library:

  * A library view showing recent books and reading progress (#119)
  * Search books by metadata
  * E-book discovery with OPDS (#6, #253)

New supported formats:

  * FictionBook (.fb2, .fb2.zip) (#128)
  * Comic book archive (.cbr, .cbz, .cbt, .cb7) (#254)
  * Plain text (.txt) (#226)
  * Unpacked EPUB files

Layout:

  * Option to set maximum page width (#192)
  * The "Automatic" layout will now show four columns when the page width is
    wide (#257)

Image viewer:

  * Improved image viewer, with new shortcuts and the ability to rotate (#299)
    and invert images
  * Option to disable image viewer, or to open images on double, middle, or
    right click (#315)

Text-to-speech:

  * Improved text-to-speech configuration UI
  * Ability to set text-to-speech voice based on book language (#134)

Annotations

  * Import annotations from JSON
  * Search in annotations
  * Annotations are now sorted in the same order as they appear in the book (#318)


  * "Allow Unsafe Content" now only enables JavaScript; external content will no
    longer be loaded. This is an important security fix. If you are running an
    old version of Foliate and cannot upgrade, you should disable "Allow Unsafe
    Content".
  * WebKit processes are now sandboxed

Other featues and fixes:

  * Improved support for vertical and right-to-left books
  * Support for StarDict dictionaries (#302) (requires new optional dependency
    sdcv)
  * Fixed current location not preserved when resizing (#152, #204)
  * Fixed auto-hiding header bar under some themes (#316)
  * Command-line options for showing version and adding books to library
  * Option to clear or disable cache
  * When an HTML page contains invalid self-closing anchor tags, it is now
    parsed as XHTML (#275, #288)

Technical changes:

  * Foliate now stores file locations in
    ~/.local/share/com.github.johnfactotum.Foliate/library/uri-store.json, and
    saves book covers to ~/.cache/com.github.johnfactotum.Foliate. Both can be
    disabled.
  * New optional dependency tracker (gir1.2-tracker-2.0 on Debian based
    distributions), which can be used to get file locations.
  * New optional dependency libhandy (gir1.2-handy-0.0). It's not absolutely
    required, but installing it would make the experience better on larger as
    well as smaller screens.
  * To open remote files, Foliate now optionally depends on libsoup
    (gir1.2-soup-2.4).

Foliate now bundles two additional libraries:

  * libarchivejs, which is MIT licensed. It is a WASM port of the popular
    libarchive C library.
  * crypto-js, which is MIT licensed. The MD5 module is used to generate
    identifiers for files that don't have unique identifiers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants