Re: Kill fastcgi process

Matthew Weigel <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Matt wrote:

> So you lock files you think other processes might be touching? What locking
> mechanisms are available in a Linux environment(C++)?

Linux supports the BSD flock() mechanism, as well as the POSIX lockf().  They
both require file descriptors, which are lower-level than iostream stuff;
Boost provides a file_lock class, but I haven't used it and you'd need to
consult the Boost documentation for that.
-- 
 Matthew Weigel
 hacker
 unique & idempot . ent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.