On Thu, 13 Aug 2015 13:59:37 +0200, Sebastien Marie wrote:

> The following patch change the system(3) call in swapctl(8) to
> vfork(2)+exec(2).
> 
> swapctl use it for invoking mount_nfs(8) when fstab contains option for
> swapping to NFS files.
> 
> Comments ? OK ?

Since waitpid() can be interrupted by a signal I think you
want something like this:

        while (waitpid(pid, &status, 0) < 0) {
                if (errno != EINTR)
                        err(1, "waitpid");
        }

 - todd

Reply via email to