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))"])
455
+
}else{
456
+
/* The ENOTTY error means the given fd does not have a TTY.
457
+
* Setting the fg process group of a fd w/o a TTY does not make sense, so we skip it with an info message instead of a warning. */
458
+
Conf.logger?.info("The given file descriptor does not have a TTY; skipping foreground process group ID setting.")
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))"])
@@ -474,15 +481,7 @@ public struct ProcessInvocation : AsyncSequence {
474
481
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.")
475
482
fdsToCloseAfterRun.insert(fd)
476
483
}
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