unix - How to fork interactive programs -


i have interactive program high start-up cost. after start-up, i'd fork process separate concurrent sessions. ideally each separate session become gnu screen window being able individually telnet/ssh each session fine too.

it shouldn't hard write scratch seems should have been done/considered before , maybe there reasons why bad idea...

i know alternative approach use shared memory data that's expensive initialize. reason i'm reluctant go down path shared data uses c++ data structures pointers, makes hard mmap unrelated process.

this database - startup phenomenally expensive, db provides several different means of connecting - example oracle's beq protocol.

telnet has issues, consider ssh. either way, consider daemon answers requests connect on port (you use af_unix sockets guess), creates separate session.

stevens advanced programming in unix envrionment or rochkind's advanced unix programming have discussions , complete examples. since stevens book seems have gone on extensive holiday, see rochkind 4.3 , 4.10.

and no, there no pending doom using approach.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -