~yolanda.robla/ubuntu/saucy/freeradius/dep-8-tests

« back to all changes in this revision

Viewing changes to src/main/exec.c

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20091123035737-snauioz5r9tf8sdr
Tags: upstream-2.1.7+dfsg
ImportĀ upstreamĀ versionĀ 2.1.7+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * exec.c       Execute external programs.
3
3
 *
4
 
 * Version:     $Id: exec.c,v 1.62 2007/10/29 09:33:15 aland Exp $
 
4
 * Version:     $Id$
5
5
 *
6
6
 *   This program is free software; you can redistribute it and/or modify
7
7
 *   it under the terms of the GNU General Public License as published by
21
21
 */
22
22
 
23
23
#include <freeradius-devel/ident.h>
24
 
RCSID("$Id: exec.c,v 1.62 2007/10/29 09:33:15 aland Exp $")
 
24
RCSID("$Id$")
25
25
 
26
26
#include <freeradius-devel/radiusd.h>
27
27
#include <freeradius-devel/rad_assert.h>
350
350
        if (pid < 0) {
351
351
                radlog(L_ERR|L_CONS, "Couldn't fork %s: %s",
352
352
                       argv[0], strerror(errno));
 
353
                if (exec_wait) {
 
354
                        close(pd[0]);
 
355
                        close(pd[1]);
 
356
                }
353
357
                return -1;
354
358
        }
355
359