Link to home
Start Free TrialLog in
Avatar of ShadowSpawn
ShadowSpawn

asked on

CGIs, file locking and execution life

Okay heres the setup -- running CGI scripts on a Linux box with Apache (suexec enabled).  Script is a compiled C script using database files and flock to insure integrity.  What happens if in the middle of a database update the client hits escape in the browser?  Does the execution terminate immediatly ?  That works for flock, but what about the integrity of the database transacation ?  If it does die instantly then whats the way around it ?  Could forked / spawned CGI processes be the answer?  Gotta lot of questions -- need the info.
ASKER CERTIFIED SOLUTION
Avatar of mouatts
mouatts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Moondancer
Moondancer

GREETING!

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.  You'll also find a link there for Experts who wish to participate in the cleanup effort of old and abandoned questions.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange