[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Add --background support for Windows (!464)
From: |
Tim Rühsen |
Subject: |
Re: wget2 | Add --background support for Windows (!464) |
Date: |
Mon, 27 Jan 2020 14:26:05 +0000 |
Tim Rühsen started a new discussion on src/wget.c:
https://gitlab.com/gnuwget/wget2/merge_requests/464#note_277415525
> +
> + // Create the child process detached form the current console and in a
> + // suspended state.
> + memset(&(si), '\0', sizeof(si));
> + si.cb = sizeof(si);
> + rv = CreateProcess(exe, GetCommandLine(), NULL, NULL, TRUE,
> + CREATE_SUSPENDED |
> DETACHED_PROCESS,
> + NULL, NULL, &si, &pi);
> + if (!rv)
> + goto cleanup;
> +
> + // Create a named section object with a name based on the process id of
> + // the child.
> + name = make_section_name(pi.dwProcessId);
> + section = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE,
> 0,
> + sizeof(struct fake_fork_info),
> name);
Please fix indentation + alignment here as well :-)
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/464#note_277415525
You're receiving this email because of your account on gitlab.com.
- wget2 | Add --background support for Windows (!464), Suhas K S, 2020/01/26
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464),
Tim Rühsen <=
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/27
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/28
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/28
- Re: wget2 | Add --background support for Windows (!464), Tim Rühsen, 2020/01/28