mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-31 11:45:49 +03:00
Daemonize youtubeUnblock with flags, without any overhead
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user