src/script.c: only close script file descriptor and kill child if really started
commit79c264ac67df48261748e2c07ad6bf2e98825782
authorFrank Benkstein <frank-vlock@benkstein.net>
Wed, 26 Mar 2008 09:34:22 +0000 (26 10:34 +0100)
committerFrank Benkstein <frank-vlock@benkstein.net>
Wed, 26 Mar 2008 09:34:22 +0000 (26 10:34 +0100)
tree93abf87d489e3b61893f146783e229963e153a73
parentaa701a63428f1c7b72a028f41edbf5040db89082
src/script.c: only close script file descriptor and kill child if really started

This fixes a bug that would close stdin on FreeBSD (and probaby other
platforms) if a script was requested and later unloaded because of missing
dependencies.  (Thanks to GanaĆ«l LAPLANCHE for the report.)
src/script.c