Daemonize youtubeUnblock with flags, without any overhead

This commit is contained in:
Vadim Vetrov
2024-10-26 16:18:13 +03:00
parent 7ec29bd47b
commit a4975dcdcd
4 changed files with 29 additions and 3 deletions

View File

@@ -625,6 +625,7 @@ int main(int argc, char *argv[]) {
print_version();
print_welcome();
if (open_raw_socket() < 0) {
perror("Unable to open raw socket");
exit(EXIT_FAILURE);
@@ -638,6 +639,10 @@ int main(int argc, char *argv[]) {
}
}
if (config.daemonize) {
daemon(0, config.noclose);
}
struct queue_res *qres = &defqres;
if (config.threads == 1) {