search for: smbd_server_fd

Displaying 2 results from an estimated 2 matches for "smbd_server_fd".

2002 Jun 02
0
daemontools supervise and smbd
...cause the -i is used; solution 4: patch: ------------------------------------------------------------------------------------ 276 continue; 277 } 278 279 /* remove here to fork even in -i mode 280 * if (smbd_server_fd() != -1 && interactive) 281 * return True; 282 */ 283 if (smbd_server_fd() != -1 && sys_fork()==0) { 284 /* Child code ... */ ------------------------------------------------------------...
2003 Dec 01
0
No subject
...uf,outbuf,length,bufsize); smb_setlen(outbuf, outsize - 4); smb_hdr[0].iov_base = outbuf; smb_hdr[0].iov_len = data - outbuf; smb_sf_hdtr.headers = smb_hdr; smb_sf_hdtr.hdr_cnt = 1; smb_sf_hdtr.trailers = 0; smb_sf_hdtr.trl_cnt = 0; if (sendfile(fsp->fd, smbd_server_fd(), startpos, smb_maxcnt + smb_hdr[0].iov_len , &smb_sf_hdtr, &sbytes, 0) < 0) { DEBUG(4,("sendfile: sent %d bytes, errno=%d\n",(int)sbytes, errno)); DEBUG(4, ( "readX fnum=%d min=%d max=%d outsize=%d\n", fsp->fnum, (int)smb_mincnt, (int)smb_maxcnt, (...