~ubuntu-branches/ubuntu/trusty/vsftpd/trusty-proposed

« back to all changes in this revision

Viewing changes to sysdeputil.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-14 18:21:08 UTC
  • mto: (2.4.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20091114182108-x8n9136us3wdyyrd
Tags: upstream-2.2.2~pre1
ImportĀ upstreamĀ versionĀ 2.2.2~pre1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1269
1269
    int ret = syscall(__NR_clone, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
1270
1270
    if (ret != -1 || (errno != EINVAL && errno != EPERM))
1271
1271
    {
1272
 
      vsf_sysutil_clear_pid_cache();
 
1272
      if (ret == 0)
 
1273
      {
 
1274
        vsf_sysutil_post_fork();
 
1275
      }
1273
1276
      return ret;
1274
1277
    }
1275
1278
    cloneflags_work = 0;
1288
1291
    int ret = syscall(__NR_clone, CLONE_NEWNET | SIGCHLD, NULL);
1289
1292
    if (ret != -1 || (errno != EINVAL && errno != EPERM))
1290
1293
    {
1291
 
      vsf_sysutil_clear_pid_cache();
 
1294
      if (ret == 0)
 
1295
      {
 
1296
        vsf_sysutil_post_fork();
 
1297
      }
1292
1298
      return ret;
1293
1299
    }
1294
1300
    cloneflags_work = 0;