Support #788

on fork exec (clients, servers) close stdin

Added by Madars 4 months ago. Updated 4 months ago.

Status:ClosedStart date:08/17/2022
Priority:Normal (Code 4)Due date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

To avoid any child process to interfere with parent process standard input, the standard input of the parent process shall be closed before xatmi client/server child is executed.

+        int fd;

+        /* close stdin... */
+        if (EXFAIL!=(fd = open("/dev/null", O_RDWR)))
+        {
+            dup2(fd, 0);
+            close(fd);
+        }
+

History

#1 Updated by Madars 4 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Release notes

Stdin now is closed when XATMI client or server is started.

Available from Enduro/X release 8.0.6+.

#2 Updated by Madars 4 months ago

  • Status changed from Resolved to Closed

#3 Updated by Madars 4 months ago

  • Description updated (diff)

Also available in: Atom PDF