aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_startread.c
blob: 4899e552cf7538c882bc867920c96bfe94284596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <skalibs/buffer.h>

#include <tipidee/fcgi.h>

void tipidee_fcgi_startread (tipidee_fcgi *fc, int fd, pid_t pid, tain const *deadline)
{
  buffer_init(&fc->b, &buffer_read, fd, fc->buf, 4096) ;
  fc->deadline = *deadline ;
  fc->id = pid & 0xffffu ; fc->id += !fc->id ;
}