Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | In althttpd.c add process tracing, commented out. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2a6b5e40c56429431ffa68c65aac09fd |
User & Date: | drh 2012-07-07 05:47:23.056 |
Context
2012-07-07
| ||
10:45 | Add "-family ipv6" and "-family ipv4" options to althttpd.c to force it to use one or the other internet protocol version. (check-in: 734d42b432 user: drh tags: trunk) | |
05:47 | In althttpd.c add process tracing, commented out. (check-in: 2a6b5e40c5 user: drh tags: trunk) | |
2012-07-06
| ||
05:22 | Fix a bug in checking for the existance of the "default.website" folder. (check-in: 67fc7ffb67 user: drh tags: trunk) | |
Changes
Changes to misc/althttpd.c.
︙ | ︙ | |||
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 | lenaddr = sizeof(inaddr); connection = accept(listener[i], &inaddr.sa, &lenaddr); if( connection>=0 ){ child = fork(); if( child!=0 ){ if( child>0 ) nchildren++; close(connection); }else{ int nErr = 0, fd; close(0); fd = dup(connection); if( fd!=0 ) nErr++; close(1); fd = dup(connection); if( fd!=1 ) nErr++; close(2); fd = dup(connection); if( fd!=2 ) nErr++; close(connection); return nErr; } } } /* Bury dead children */ | > | > | 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 | lenaddr = sizeof(inaddr); connection = accept(listener[i], &inaddr.sa, &lenaddr); if( connection>=0 ){ child = fork(); if( child!=0 ){ if( child>0 ) nchildren++; close(connection); /* printf("subprocess %d started...\n", child); fflush(stdout); */ }else{ int nErr = 0, fd; close(0); fd = dup(connection); if( fd!=0 ) nErr++; close(1); fd = dup(connection); if( fd!=1 ) nErr++; close(2); fd = dup(connection); if( fd!=2 ) nErr++; close(connection); return nErr; } } } /* Bury dead children */ while( (child = waitpid(0, 0, WNOHANG))>0 ){ /* printf("process %d ends\n", child); fflush(stdout); */ nchildren--; } } } /* NOT REACHED */ exit(1); } |
︙ | ︙ |