A
! aaa
1. Is there a way to relinquish "root" privs in a script, or, some way to
let a "nobody" script listen on ports <1024 easily ?
2. I've got some code which runs in the background (uses fork() inside to do
this automatically) and the background code kicks off another process (a
compiled application in C) - and I'm having some problems with this:-
If I "kill" the C application, the perl code also gets a kill signal from
somewhere (and so does the code which originally started the perl code too,
if it wasn't run manually!)
What is the correct way to "orphan" a chunk of code so that none of its
parents can suffer related signals later ?
Is there a way to run some other process without being the parent of that
process?
I'm using RedHat BTW.
let a "nobody" script listen on ports <1024 easily ?
2. I've got some code which runs in the background (uses fork() inside to do
this automatically) and the background code kicks off another process (a
compiled application in C) - and I'm having some problems with this:-
If I "kill" the C application, the perl code also gets a kill signal from
somewhere (and so does the code which originally started the perl code too,
if it wasn't run manually!)
What is the correct way to "orphan" a chunk of code so that none of its
parents can suffer related signals later ?
Is there a way to run some other process without being the parent of that
process?
I'm using RedHat BTW.