AsiaBSDCon 2017 Secure CGI

Asynchronous introduction

Asynchronous introduction

Mission

A common use of CGI scripts is to do some long processing. For example:

We'll execute a child, daemonise, and work. We can't just execute because the web server's behaviour isn't known: most servers will wait until the file descriptors have closed (including stderr!); others will exit when the first child exits.