You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conf.logger?.warning("Cannot determine the process group ID of the process that owns standard input; skipping foreground process group ID setting.", metadata:["error":"\(Errno(rawValue: errno))"])
Conf.logger?.warning("Cannot determine the process group ID of the process that owns standard input; skipping foreground process group ID setting.", metadata:["error":"\(Errno(rawValue: errno))"])
@@ -470,11 +474,15 @@ public struct ProcessInvocation : AsyncSequence {
470
474
assert(fileDescriptorsToSend.isEmpty,"Giving ownership to fd on stdin is not allowed when launching the process via the bridge. This is because stdin has to be sent via the bridge and we get only pain and race conditions to properly close the fd.")
471
475
fdsToCloseAfterRun.insert(fd)
472
476
}
473
-
letoriginalPgrp=tcgetpgrp(fd.rawValue)
474
-
if originalPgrp ==-1{
475
-
Conf.logger?.warning("Cannot determine the process group ID of the process that owns the given fd; skipping foreground process group ID setting.", metadata:["error":"\(Errno(rawValue: errno))","fd":"\(fd)"])
477
+
if setFgPgID {
478
+
letoriginalPgrp=tcgetpgrp(fd.rawValue)
479
+
if originalPgrp ==-1{
480
+
Conf.logger?.warning("Cannot determine the process group ID of the process that owns the given fd; skipping foreground process group ID setting.", metadata:["error":"\(Errno(rawValue: errno))"])
assert(fileDescriptorsToSend.isEmpty,"Sending data to stdin via a reader is not allowed when launching the process via the bridge. This is because stdin has to be sent via the bridge and we get only pain and race conditions to properly close the fd.")
0 commit comments