apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans-Peter Weidinger <hans-pe...@hp-weidinger.at>
Subject WIN32 - Filehandles inherited when starting process with apr_proc_create
Date Tue, 30 May 2006 07:49:04 GMT
Hi all,

i'm having a problem with a plugin written by myself that spawns a 
daemon-process under
win32 with the apr_proc_create call.

The process inherits all file-handles from the caller and locks the 
files (windows-like). These
file-handles are not needed in the spawned process.

Unfortunately the master process wants to overwrite the files later on, 
but i get an error-message
that this operation cannot be performed, because the files are locked .....

Is there a way to spawn the process without inheriting file-handles from 
the parent process?

Any help apreciated.


View raw message