OS/390 openssh
Darren Tucker
dtucker at zip.com.au
Wed Oct 8 23:58:27 EST 2003
Martin Kraemer wrote:
> > Could you achieve the same thing by creating a replacement fork() funtion
> > in port-bs2000.c?
>
> Alas, impossible: there *is* a real fork() in BS2000, but it cannot
> be used in combination with changed user identities. When changing the
> user, the respective fork() must already pre-initialize for the new
> user-to-be which it need not if the user identity is not changed.
> It is unclean, but I see no portable solution to this one.
The preprocessor is your friend! Put "#define fork() bs2000_fork()" into
port-bs2000.h, then add your magic bs2000_fork function in port-bs2000.c.
We do something similar with signal/mysignal in bsd-misc.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list