[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] how to avoid fork() for a Mac based server



Morning!

Has anybody got an example of how to circumvent the use of fork()
when implementing a server?

Im my case I have the need to rewrite parts of the syslogd daemon
on the Mac. There are plenty of examples around but all of them
use fork() to be able to accept new connections. (it is a UDP
based server)

In the mailing list archive I found a note from Matthias statiting
that one could use select() to achieve a similar functionality.

Some code pieces is all I need (probably :))


Axel

---
Axel Rose              | In the novel I never wrote, I wanted the hero
SPRINGER & JACOBY      | to be a computer programmer because it was the
Werbung GmbH           | most poetic and romantic occupation I could
rose@ sj.com           | think of... -- John Updike, "The Music School"


-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6ui

mQCPAjE5wsMAAAEEANfcHbM+9qKS/cZpY6EzeXOKelw7VrjPMJRX8F+6warvy8uj
bSccRpniJUWhIN7/bZq9d/GLmSgBw8LMJpGG53mrMZEAPKe+f/idQ6qh8W/xd8XX
ngobFs3xt8gf8ceXrdoerQWmav+m9PnatxLKA1INoT6ErJ7qcVI6JLqiHLglABEB
AAG0IEF4ZWwgUm9zZSA8cm9zZUBpbnRlcm5ldC5zai5jb20+iQCVAgUQMTnDIFI6
JLqiHLglAQGsrAP/dSK8T+5bwqpsRDesSwGRKOxrsb+Ni2d3isQBHdKP7X5X6n3f
aNN0f6N2mU9lGMmo8EIh2zgEC3IIzt0Z7td3VhCTs3zRI4L2eE12FG3j/sORV/Z+
7FVBh61kRLQtJPWEK8zE8QUw2lmCi/Z+Y66VyIfKNCEEt57+8Sxrv5FRWYg=
=LO+R
-----END PGP PUBLIC KEY BLOCK-----



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch