~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to ps.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-16 18:33:37 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20110616183337-etb3qgbwjkn8zniq
Tags: upstream-2.2.0
ImportĀ upstreamĀ versionĀ 2.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
    }
235
235
}
236
236
 
237
 
static int
238
 
pc_list_len (struct proxy_connection *pc)
239
 
{
240
 
  int count = 0;
241
 
  while (pc)
242
 
    {
243
 
      ++count;
244
 
      pc = pc->next;
245
 
    }
246
 
  return count;
247
 
}
248
 
 
249
237
static void
250
238
proxy_entry_close_sd (struct proxy_connection *pc, struct event_set *es)
251
239
{
786
774
      /* Let msg know that we forked */
787
775
      msg_forked ();
788
776
 
 
777
      /* Don't interact with management interface */
 
778
      management = NULL;
 
779
 
789
780
      /* close all parent fds except our socket back to parent */
790
781
      close_fds_except (fd[1]);
791
782