[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wget2 | Add --background support for Windows (!463)
From: |
Suhas K S |
Subject: |
wget2 | Add --background support for Windows (!463) |
Date: |
Sun, 26 Jan 2020 18:42:27 +0000 |
Suhas K S created a merge request:
https://gitlab.com/gnuwget/wget2/merge_requests/463
Project:Branches: suhasks123/wget2:WIN32backgroundSupport to
gnuwget/wget2:master
Author: Suhas K S
### Design:
`--background` for non-windows operating systems is implemented using `fork()`.
Windows doesn't have `fork()` so a workaround needs to be followed to implement
`--background` on it. The `src/mswindows.c` in wget1.x has a reliable method to
achieve this.
Essentially, `CreateProcess()` in windows can be used to create a new wget2
process with the same command line parameters(except `--background`) used to
run the current running wget2 process. The new process is run without a console
and suspended till the current running wget2 process is terminated. The console
output is printed into a file `wget-log` in the same directory.
### Approver's checklist:
* [ ] The author has submitted the FSF Copyright Assignment and is listed in
AUTHORS
* [ ] There is a test suite reasonably covering new functionality or
modifications
* [ ] Function naming, parameters, return values, types, etc., are consistent
with existing code
* [ ] This feature/change has adequate documentation added (if appropriate)
* [ ] No obvious mistakes / misspelling in the code
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/463
You're receiving this email because of your account on gitlab.com.
- wget2 | Add --background support for Windows (!463),
Suhas K S <=