nwg-piotr/nwg-wrapper

Signalling 8 to refresh doesn't work

MelihDarcanxyz opened this issue · 3 comments

As the title says, script doesn't refresh when I signal 8 with pkill. But instead, if I run nwg-wrapper with --sig_refresh 7 flag, it does work if I signal 7. I have no idea why. Also, 7 is just random and 8 is the default of nwg_wrapper. Any help appreciated. Thanks.

I guess this is where things go wrong:

parser.add_argument("-sr",

    parser.add_argument("-sr",
                        "--sig_refresh",
                        type=int,
                        default="99",
                        help="custom Signal number to refresh the script; default: 8")

Opened a PR in:
#25

Fixed with: #25