3 ms·
If you really wanted, you could do this in C with a fork+exec. FWIW, sshd does do this, for a couple reasons.
by tedunangst 12y ago
If you really wanted, you could do this in C with a fork+exec. FWIW, sshd does do this, for a couple reasons.
- lmm 12y agoUp to a point. Fork+exec is a very blunt instrument; sshd can piggyback on the unix security model because every ssh connection belongs to a user with a local user account and (usually) has the authority to do everything that that local user account may do. That wouldn't be true for a webserver. Of course ultimately you can Greenspun any language to do what any other language can. But in practice a language where the vocabulary already exists - where you have higher-kinded types and existing generic libraries for handling when a value has a particular "context" - makes it much more practical.