~semiosis/ubuntu/precise/glusterfs/fix-for-876648

« back to all changes in this revision

Viewing changes to .pc/02-spelling-error.diff/libglusterfs/src/common-utils.c

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Louis Zuckerman, Patrick Matthäi
  • Date: 2012-01-07 14:19:57 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20120107141957-532c9ubquvlmzls5
Tags: 3.2.5-1
[ Louis Zuckerman ]
* Add patch (03) to fix build errors

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1534
1534
        char  *arg    = NULL;
1535
1535
        char  *tmp    = NULL;
1536
1536
        char  *argv[100] = { NULL, };
 
1537
        sigset_t set;
1537
1538
 
1538
1539
        dupcmd = gf_strdup (command);
1539
1540
        if (!dupcmd)
1557
1558
                for (idx = 3; idx < 65536; idx++) {
1558
1559
                        close (idx);
1559
1560
                }
1560
 
                /* Step 2: execv (); */
 
1561
 
 
1562
                /* Step 2: Start with an empty signal mask */
 
1563
                ret = sigemptyset (&set);
 
1564
                if (ret) {
 
1565
                        gf_log ("", GF_LOG_ERROR, "Failed to empty signal set");
 
1566
                        goto step3;
 
1567
                }
 
1568
 
 
1569
                ret = sigprocmask (SIG_SETMASK, &set, NULL);
 
1570
                if (ret)
 
1571
                        gf_log ("", GF_LOG_ERROR, "Failed to set signal mask");
 
1572
 
 
1573
        step3:
 
1574
                /* Step 3: execv (); */
1561
1575
                ret = execvp (argv[0], argv);
1562
1576
 
1563
1577
                /* Code will not come here at all */