Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
feature test macro for portable daemon?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 218

PostPosted: Tue Feb 12, 2013 12:30 pm    Post subject: feature test macro for portable daemon? Reply with quote

I asked this question before reading about sessions and process groups. I was asking what happened, if you were coding up a daemon, and you fork()'d and exited twice on a system that did not exhibit the sys V behaviour. On a sys V system you are supposed to fork() twice, and have the parent exit each time, so that the second child is not a session leader and thus doesn't acquire a controlling terminal. As far as i can tell it doesn't make any difference if you fork() and exit twice on a system that doesn't have the sys V behaviour. Please correct me if i'm wrong!
Thankx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum