From 3b02b76c7989ff664b055316b1f1559ae99f350b Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 6 Oct 2005 20:39:01 +1000 Subject: [PATCH] Switch from setpgrp to setpgid for platform independence darcs-hash:20051006103901-ac50b-cd58dc150d1419ab6c19706fd40fd33842e30e16.gz --- fish_tests.c | 2 +- fishd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_tests.c b/fish_tests.c index 4b849d41a..c10096410 100644 --- a/fish_tests.c +++ b/fish_tests.c @@ -622,7 +622,7 @@ int main( int argc, char **argv ) complete_init(); reader_init(); env_init(); - + test_util(); test_tok(); test_parser(); diff --git a/fishd.c b/fishd.c index b99bd4e0b..e9003bc17 100644 --- a/fishd.c +++ b/fishd.c @@ -296,7 +296,7 @@ static void daemonize() /* Put ourself in out own processing group */ - setpgrp(); + setpgid( 0, 0 ); /* Close stdin and stdout