chiark / gitweb /
prefork-interp: docs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 19:10:34 +0000 (20:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 20:21:10 +0000 (21:21 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cprogs/prefork-interp.c

index 3a999ef4c629d0339f6a7ffab5cf7fe021fbfb79..cfab9f879dc139d280c125e219d7c66e381e68b5 100644 (file)
@@ -1,12 +1,16 @@
 /*
  * "Interpreter" that you can put in #! like this
  *   #!/usr/bin/prefork-interp [<options>] <interpreter>
+ * to amortise the startup time of a script.
  *
  * Usages:
  *   prefork-interp  [<option> ..] <interpreter>  [<script> [<args> ...]]
  *   prefork-interp  [<option>,..],<interpreter>   <script> [<args> ...]
  *   prefork-interp '[<option> ..] <interpreter>'  <script> [<args> ...]
  *
+ * The script must load a corresponding library (eg Proc::Prefork::Interp
+ * for Perl) and call its preform_initialisation_complete routine.
+ *
  * Options must specify argument mediation approach.
  * Currently the only argument mediation supported is:
  *