X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/2d0a6606ee8899dfe372bbdc760fd15c14f3fceb..02d50cbd5926b4ef1f88c6f9ca28486fa45508c0:/disobedience/rtp.c diff --git a/disobedience/rtp.c b/disobedience/rtp.c index cbedb18..4693173 100644 --- a/disobedience/rtp.c +++ b/disobedience/rtp.c @@ -1,6 +1,6 @@ /* * This file is part of Disobedience - * Copyright (C) 2007 Richard Kettlewell + * Copyright (C) 2007-2010 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -108,7 +108,7 @@ void start_rtp(void) { if(!(pid = xfork())) { if(setsid() < 0) disorder_fatal(errno, "error calling setsid"); - if(!(pid = xfork())) { + if(!xfork()) { /* grandchild */ exitfn = _exit; /* log errors and output somewhere reasonably sane. rtp_running()