]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - server.c
Doxify error2.c and add GPL header.
[paraslash.git] / server.c
index 36af088ec64e0b4fd2baac06cd773653858853f0..fc7ff296e4848bd4f1c487caa3d2e044c2c033a6 100644 (file)
--- a/server.c
+++ b/server.c
@@ -49,7 +49,7 @@
  *     - Spawning processes: \ref exec.c,
  *     - Inter process communication: \ref ipc.c,
  *     - Blob tables: \ref blob.c,
- *     - The error subsystem: \ref error.h.
+ *     - The error subsystem: \ref error.h, \ref error2.c,
  *     - Access control for paraslash senders: \ref acl.c, \ref acl.h.
  *     - Internal crypto API: \ref crypt.h.
  *     - interactive sessions (libreadline): \ref interactive.c.
@@ -388,6 +388,9 @@ static int command_post_select(struct sched *s, struct task *t)
                goto out;
        }
        if (child_pid) {
+               /* avoid problems with non-fork-safe PRNGs */
+               unsigned char buf[16];
+               get_random_bytes_or_die(buf, sizeof(buf));
                close(new_fd);
                /* parent keeps accepting connections */
                return 0;