Switch from setpgrp to setpgid for platform independence

darcs-hash:20051006103901-ac50b-cd58dc150d1419ab6c19706fd40fd33842e30e16.gz
This commit is contained in:
axel 2005-10-06 20:39:01 +10:00
parent 401e060c05
commit 3b02b76c79
2 changed files with 2 additions and 2 deletions

View File

@ -622,7 +622,7 @@ int main( int argc, char **argv )
complete_init();
reader_init();
env_init();
test_util();
test_tok();
test_parser();

View File

@ -296,7 +296,7 @@ static void daemonize()
/*
Put ourself in out own processing group
*/
setpgrp();
setpgid( 0, 0 );
/*
Close stdin and stdout