Fixed parsing of --custom-signals
Fixed a segfault in sync.c