public inbox for cygwin-developers@cygwin.com
 help / color / mirror / Atom feed
* RFC: [PATCH 0/6] When fork fails, retry with hardlinks.
@ 2016-12-07 10:59 Michael Haubenwallner
  2016-12-07 10:59 ` [PATCH 6/6] forkables: Document hardlink creation at forktime Michael Haubenwallner
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Michael Haubenwallner @ 2016-12-07 10:59 UTC (permalink / raw)
  To: cygwin-developers

Hi Corinna (et al.),

now with NtQueryVirtualMemory(MemorySectionName) I've been able to drop
the need to early open any file, and any check for modified binaries.
Instead, only the failing fork call is the trigger to create the
hardlinks (if possible) - followed by a second fork call then.

One question: During dlopen rework I've learned about tmp_pathbuf:
Unlike in child process startup, where tmp_pathbuf is not initialised
yet (have nt_max_path_buffer instead), do you see a reason to not use
tmp_pathbuf during hardlink creation in parent process (patch 3)?

The idea there is to really catch the right file for when that file is
just being renamed - that needs the second filename buffer to compare.

Other than that: What do you think about these patches now?

Thanks!
/haubi/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-01-09 17:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-07 10:59 RFC: [PATCH 0/6] When fork fails, retry with hardlinks Michael Haubenwallner
2016-12-07 10:59 ` [PATCH 6/6] forkables: Document hardlink creation at forktime Michael Haubenwallner
2016-12-07 11:00 ` [PATCH 2/6] dll_list: Track main executable and cygwin1.dll Michael Haubenwallner
2016-12-07 11:00 ` [PATCH 5/6] forkables: Keep hardlinks disabled via shared mem Michael Haubenwallner
2016-12-07 11:02 ` [PATCH 4/6] forkables: On fork failure, retry with hardlinks Michael Haubenwallner
2016-12-07 11:02 ` [PATCH 1/6] dll_list: Store dll file name as full NT path Michael Haubenwallner
2016-12-07 11:14 ` [PATCH 3/6] forkables: Create forkable hardlinks, yet unused Michael Haubenwallner
2016-12-08 15:51 ` RFC: [PATCH 0/6] When fork fails, retry with hardlinks Corinna Vinschen
2017-01-09 17:45   ` Michael Haubenwallner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).