This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthreads, fork+exec, and deadlocks


> After fork(), I want to close all file descriptors, endpwent(),
> closelog(), manage stdio/stderr/stdin etc. properly before doing the
> exec().

Probably all these descriptors should have FD_CLOEXEC set so the right
thing happens automatically at exec.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]