Weekly Standup
ActivePublic

Hosted by wk on Nov 13 2017, 11:00 AM - 12:00 PM.

Recurring Event

Event Series
This event repeats every week.

Details

gniibe is attending this event.Nov 9 2017, 12:42 AM
gniibe added a subscriber: gniibe.EditedNov 9 2017, 12:49 AM
werner added a subscriber: werner.Nov 13 2017, 12:11 PM

re: double fork. Simply removing it is IMHO too brittle. We introduced it very early to avoid all kind of problems which hanging processes due to ill-behaving programs using gpgme. OTOH, there is still the problem on to reliable close file descriptors in multi-threaded programs. We now have a solution for Linux but it is Linux only.

On Windows we use a spawning helper which wraps the execs and closes the file descriptors - this is the only way to do this on older Windows versions Since Windows-7 there seems to be a system call to close file descriptor (HANDLEs) more selectively. That would allow to remove the spawning helper. OTOH, on Unix a spawning helper could be used to avoid the double for and would also simplify file descriptor closing.

Some people don't like extra wrapper programs - but in reality the overhead is very small.