]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Remove one syscall when waiting for a foreground job.
authorJilles Tjoelker <jilles@FreeBSD.org>
Fri, 18 Oct 2013 12:35:12 +0000 (12:35 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Fri, 18 Oct 2013 12:35:12 +0000 (12:35 +0000)
commitbab2982266db3debdd8a8af934efddb184f79eee
treea11dc7ead3cb7fcca50ffcf400d9868ca3e32374
parenta9355dbe829dfef46160f6e1beec9185e1f08c85
sh: Remove one syscall when waiting for a foreground job.

The getpgrp() call is unnecessary: if there is no job control then the
result was not used at all and if there is job control then we are not a
subshell and our process group ID is equal to our process ID (rootpid).
bin/sh/jobs.c