aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_startwrite.c
blob: 12fd628e0cc74a411a300dd1a91c5c4481bf1257 (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_startwrite (tipidee_fcgi *fc, int fd, pid_t pid, tain const *deadline)
{
  buffer_init(&fc->b, &buffer_write, fd, fc->buf, 4096) ;
  fc->deadline = *deadline ;
  fc->id = pid & 0xffffu ; fc->id += !fc->id ;
}