Libafcgi is a project mainly written in C and SHELL, based on the MIT license.
libafcgi on github for easier collaboration - main repo still on lighttpd.net
libafcgi is a libev based asynchronous FastCGI library.